Nicholas Clark wrote at Sat, 10 Aug 2002 01:53:29 +0200: >> I think the most fair way to handle it, >> is to give a warning when Test::ManyParams is used twice with seeding setting >> in the same package. > > Yes. This sounds like what I'm doing at work - if two attempts to call the > seeding function are made, then a warning is issued. > > I can't think of a better way, and it does seem to work. The only problem I > found was "unauthorised" use of rand() before the official call to srand() > had been made. I'm not sure of the best way to stamp that out - possibly > by overloading CORE::GLOBAL::rand at BEGIN time.
I think, at least for the first time, I follow the typical Perl principle: Write it into the documentation and ignore the problem in the code. Greetings, Janek