note 53785 added to function.uniqid
| From: | php-general at lists dot php dot net | Date: | Mon, 13 Jun 2005 12:49:47 +0000 |
| Subject: | note 53785 added to function.uniqid | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90351@lists.php.net to get a copy of this message | ||
Tommiboy's comment is irrelevant.
The number of attempts needed to get a collision
is related to the birthday paradox (and birthday attack).
You only need on the order of 1.2*sqrt(total_count)
attempts to find a collision, not (total_count/2).
See http://en.wikipedia.org/wiki/Birthday_paradox
and http://en.wikipedia.org/wiki/Birthday_attack
----
Manual Page -- http://www.php.net/manual/en/function.uniqid.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53785
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53785&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53785&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53785&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53785&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53785&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53785&report=yes
Search -- http://master.php.net/manage/user-notes.php