Re:Nanosecond timestamp collisions are common
by SV_BubbleTime on Friday July 21, 2023 @12:20PM
(#36815707)
UUIDv7 has two at least two such monotonic strategies. You can use a counter, or you can use those bytes to increase the random entropy.
If you're clever enough, neither needs a branch.