Re: Request #65501 uniqid(): More entropy parameter should be true by default
| From: | Nikita Popov | Date: | Sat, 24 Aug 2013 10:08:47 +0000 |
| Subject: | Re: Request #65501 uniqid(): More entropy parameter should be true by default | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68618@lists.php.net to get a copy of this message | ||
On Sat, Aug 24, 2013 at 11:28 AM, Lars Strojny <lars@strojny.net> wrote:
> Hi everyone,
>
> adding UUID functionality to the core would be very cool. Especially in
> times where we create more and more primary keys in the code, not in the
> database.
>
> cu,
> Lars
>
We already have a great (version 4) UUID implementation called
mcrypt_create_iv, just minus the fixed sequences and fancy formatting.
Apart from moving this to core (not requiring mcrypt/openssl) and maybe
adding alphabet support, I don't immediately see why this wouldn't be
sufficient. Why do we need fancy UUID formatting or "unique hashes"
(whatever that is supposed to be...)?
Nikita