Re: UUID
| From: | Colin O'Dell | Date: | Tue, 12 Apr 2016 13:30:20 +0000 |
| Subject: | Re: UUID | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92226@lists.php.net to get a copy of this message | ||
>
> I would prefer not to refer to random to avoid any confusion with the
> recent added random function. As uuid is not crypto safe and is not aimed
> to. Users will then hopefully not think about using instead of the random
> api.
>
> Also uuid alone may be a problem (bc?) It sounds like a logical choice.
> Alternatively uuid_create ().
>
Ah yes, good point. I was thinking random_uuid() might be good for v4
UUIDs, and that a parameter might be needed, but I failed to make the
connection that not all UUID versions are random - my apologies for not
catching that before hitting send.
I like the idea of uuid() or uuid($version = 4)