At 14:57 29/4/2001, Andi Gutmans wrote:
>At 01:55 PM 4/29/2001 +0300, Zeev Suraski wrote:
>>At 13:58 29/4/2001, Andi Gutmans wrote:
>>>The seed was initialized in MINIT before the children forked. So what 
>>>happened was that the children started returning the same random numbers.
>>It doesn't really matter where it was initialized, but rather, when it 
>>was initialized...
>Well as it was initialized in MINIT it is initialized *exactly* at the 
>same time for all apache children. Therefore, the numbers returned by each 
>child are the same.

In order to avoid this you actually have to call it at completely different 
times, something you can't really guarantee.  We should probably not use 
the timestamp as the seed (at least not alone), but also take the pid into 


PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to