Re:TIL: Versions of UUID and when to use them
by wereHamster on Sunday August 25, 2024 @06:20PM
(#41352006)
I usually generate N bits of randomness and base58 encode it. Choose N to your liking. You loose the benefits of monotonic sorting that is present in some UUID versions. Base58 is url safe and does not contain any special characters. And you can still store values as binary (eg. bytea in Postgres instead of a text column).
[ Parent
| on HN ]