note 75119 added to function.uniqid
| From: | kristoffer dot paro at gmail dot com | Date: | Sun, 13 May 2007 15:05:24 +0000 |
| Subject: | note 75119 added to function.uniqid | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-126478@lists.php.net to get a copy of this message | ||
In response to the notes about UUID generation added by mimec and lance_rushing at hotmail dot com.
Calling mt_rand the fewest possible times is not necessarily the fastest, if it heavily utilizes
string handling routines. I did a quick benchmark between the two functions and discovered that
lance's function (using only 5 mt_rands) was about 6.5 times _slower_ than mimec's on my
system.
----
Server IP: 80.81.171.181
Probable Submitter: 84.250.42.194
----
Manual Page -- http://www.php.net/manual/en/function.uniqid.php
Edit -- https://master.php.net/note/edit/75119
Del: integrated -- https://master.php.net/note/delete/75119/integrated
Del: useless -- https://master.php.net/note/delete/75119/useless
Del: bad code -- https://master.php.net/note/delete/75119/bad+code
Del: spam -- https://master.php.net/note/delete/75119/spam
Del: non-english -- https://master.php.net/note/delete/75119/non-english
Del: in docs -- https://master.php.net/note/delete/75119/in+docs
Del: other reasons-- https://master.php.net/note/delete/75119
Reject -- https://master.php.net/note/reject/75119
Search -- https://master.php.net/manage/user-notes.php