RE: [PHP] GUID or any other unique IDs
| From: | Denis Gerasimov | Date: | Tue, 25 Oct 2005 10:47:26 +0000 |
| Subject: | RE: [PHP] GUID or any other unique IDs | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-224614@lists.php.net to get a copy of this message | ||
Hello Jasper,
> $unique_id = sha1( uniqid( mt_rand(), true ) );
>
> which should be very unique and suitable for most purposes.
I really need millions of unique IDs - hashing is not suitable for this task
(I think so) :-(. Any more ideas?
Is there a PHP extension or an external library for generating GUIDs?
Have a great day,
Denis S Gerasimov
Web Developer
Team Force LLC
Web: www.team-force.org
RU & Int'l: +7 8362-468693
email: denis.gerasimov@team-force.org