Re: Bug #14248: uniqid() is extremely slow (20ms per call)
| From: | Derick Rethans | Date: | Tue, 27 Nov 2001 10:02:44 +0000 |
| Subject: | Re: Bug #14248: uniqid() is extremely slow (20ms per call) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-71758@lists.php.net to get a copy of this message | ||
On Tue, 27 Nov 2001, Andrey Hristov wrote:
> 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)
Have a look at /ext/standard/lcg.c, lines 52-86 for more information.
Derick