From: [EMAIL PROTECTED]
Operating system: Linux 2.4.13-ac5
PHP version: 4.0.5
PHP Bug Type: Unknown/Other Function
Bug description: uniqid() is extremely slow (20ms per call)
A call to uniqid() seems to take approximately 20ms. In all that time the
processor seems to be
Hi bartvb!
On Tue, 27 Nov 2001, [EMAIL PROTECTED] wrote:
From: [EMAIL PROTECTED]
Operating system: Linux 2.4.13-ac5
PHP version: 4.0.5
PHP Bug Type: Unknown/Other Function
Bug description: uniqid() is extremely slow (20ms per call)
A call to uniqid() seems to take
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
- 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
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 -