News for hackers. Stuff that matters.
Re:Moving Away from UUIDs by JoeAltmaier on Tuesday November 22, 2022 @08:16AM (#33705388)
A UUID is random bits. The statement was oxymoron
Re:Moving Away from UUIDs by edflsafoiewq on Tuesday November 22, 2022 @10:03AM (#33706538)
But it isn't. A UUID is a disjoint-union of several different types of IDs, only one of which is just random bits, and if random bits is all you care about, then "random 128-bit number" is not only clearer but gives more entropy than "version 4 UUID".

That what I'm trying to ask, what is the purpose of this disjoint union, when would you ever use the "UUID-ness" of UUIDs (which is not the same as asking about the virtues of UUIDs of a particular version).

Re:Moving Away from UUIDs by JoeAltmaier on Tuesday November 22, 2022 @04:14PM (#33711604)
The virtue is, software has some idea what a UUID is. There's a mostly-random version which is also understood.

If you want to start doing your own thing, a random number is good. It's hard to get a good random number. I suggest starting with, hey you guessed it, the UUID library.