On Tue, Aug 06, 2002 at 06:42:14AM +0200, Janek Schleicher wrote:

> 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.

Nicholas Clark
-- 
Even better than the real thing:        http://nms-cgi.sourceforge.net/

Reply via email to