Shaving a few random bits off the UUID to make it trivially sortable, while still providing plenty (74!) bits of radomness is just an ingenius idea.

Collisions are still very unlikely, as two machines would have to come up with the exact same 74 bits at the same millisecond.

I know which UUID implementation I’m going to try for my next projects.

Not sure if I’ll keep the java.time.Instant in there though. I do understand that it requires no external dependencies, but it also makes this non-portable for Kotlin Multiplatform.

UUIDv7 via HN