Naive question: what techniques are used for reliably generating UUIDs? Can you do it without giving each machine a unique identifier first?
https://en.wikipedia.org/wiki/UUID
UUID1 and UUID4 are common. UUID1 are the ones that use machine id and timestamp. UUID4 are supposed to be randomly generated. UUID1 can be traced to a machine that created them and are sortable somewhat, UUID4s are nice because you don't have to worry if machines somehow ended up with non-unique machines (bad VM cloning can easily do that).
I would just use UUID4 for example.
Version 4 UUIDs have the form xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx where x is any hexadecimal digit and y is one of 8, 9, A, or B
What is the purpose of the 4 and y?