I looked at php_combined_lcg() and saw that it uses LCG, it looks like a macro but I've found anywhere else in the source. I looked at the source to view how session_id is generated (using seconds, microseconds, and php_combined_lcg -> standard/lcg.c)
Thanks in advance Andrey Hristov ----- Original Message ----- From: "Derick Rethans" <[EMAIL PROTECTED]> To: "Teodor Cimpoesu" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, November 27, 2001 11:54 AM Subject: Re: [PHP-DEV] Bug #14248: uniqid() is extremely slow (20ms per call) > On Tue, 27 Nov 2001, Teodor Cimpoesu wrote: > > > I guess it gets entropy from /dev/[u]random, but when it is exhausted it > > cannot do much but to wait for more entropy. > > Wrong guess, it does not. It gets it from time() and the php_combined_lcg > (which is feeded by the the PID/thread id and some time value). > > Derick > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]