note 28582 deleted from function.uniqid by aidan
| From: | aidan@php.net | Date: | Sun, 07 Nov 2004 11:52:31 +0000 |
| Subject: | note 28582 deleted from function.uniqid by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-80225@lists.php.net to get a copy of this message | ||
Note Submitter:
----
A more random (and thus better) prefix can be achieved with mt_rand():
list($usec, $sec) = explode(' ', microtime());
mt_srand((float) $sec + ((float) $usec * 100000));
$rand_string = md5(uniqid(mt_rand(), true));