Re: Bug #14248: uniqid() is extremely slow (20ms per call)
| From: | Derick Rethans | Date: | Tue, 27 Nov 2001 09:54:27 +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-71755@lists.php.net to get a copy of this message | ||
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