Rob Anderson wrote: > Hi Guys, > > According to my bookshelf, from 5.004 onwards srand uses a seed that's > "that's reasonably difficult to guess". Prior to that, it used time(). It > does seem as if the seed it being set the as the same value each time. Could > your program be being cached some where?
Interesting. Digging into the code for Perl v5.6.1, 'srand' will try to read four bytes from the /dev/urandom device. If that fails, then it will read the current time of day and mix it up with the PID, a Perl stack pointer and a few arbitrary constants. Could it be that /dev/urandom (or whatever the Perl config option PERL_RANDOM_DEVICE is set to) is misbehaving? Cheers, Rob D -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]