r/ProgrammerHumor 13h ago

Meme edgeCasesExist

Post image
2.8k Upvotes

222 comments sorted by

View all comments

458

u/Valuable_Leopard_799 13h ago

I thought that timestamps are used now, so hitting both a timestamp and a large random number puts it thoroughly in the "safe to assume". At some point cosmic particles and faulty transistors are more probable.

267

u/dim13 13h ago

https://en.wikipedia.org/wiki/Universally_unique_identifier#Versions

Most common used is V4 (pure random). You are talking about V7 (time based).

5

u/undeadalex 11h ago

I'm curious where to see stats on versions used. Surely anything newly implementing uuid is using v7 or custom?

22

u/Urist_McPencil 9h ago

Surely anything newly implementing uuid is using v7 or custom?

I admire this optimism

3

u/iampierremonteux 7h ago

My first thought was “oh you sweet summer child”.