News for hackers. Stuff that matters.
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).
Re:TIL: Versions of UUID and when to use them by physicles on Monday August 26, 2024 @01:48AM (#41354358)
I've also taken UUIDs and re-encoded them as base58. Works fine.