logoalt Hacker News

dpark • yesterday at 7:11 PM • 1 reply • view on HN

This is perfect if you only have one machine and the process never restarts. But then if you only have one machine you don’t realistically need uuid identifiers.


Replies

Lammy • yesterday at 7:57 PM

This is why the oldschool UUIDv1 spec specifies initializing the sequence value at a random number:

“12.4.4 — The Clock Sequence shall be originally (that is, once in the lifetime of a system producing UUIDs) initialized to a random number that is not derived from the Node value. NOTE – This is in order to minimize the correlation across systems, providing maximum protection”