3 ms·
When it comes to random identifiers, the advantage of uuid4 is mainly that it's a standard thing that everyone understands well, and finding a lib that generate
by hot_gril 3y ago
When it comes to random identifiers, the advantage of uuid4 is mainly that it's a standard thing that everyone understands well, and finding a lib that generates one securely won't require any thought. It's never the ideal solution, but it's often good enough.
- ddoolin 3y agoAgreed - not to mention the specification of new ones with different features keeps evolving.
- hot_gril 3y agoYeah I'm not a fan of the non-random UUID specs causing confusion. Seems like they mostly get used accidentally by someone who actually needed uuid4. "uuid5 is newer and better, right?"
- koromak 3y agoI would love to use short UUIDs, but every part of my stack can get a long one with a single, trusted import. I agree. If there was a shorter standard, I would use that for most cases.