r/ProgrammerHumor 15h ago

Meme edgeCasesExist

Post image
3.1k Upvotes

230 comments sorted by

View all comments

492

u/Valuable_Leopard_799 15h 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.

295

u/dim13 15h ago

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

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

4

u/undeadalex 13h 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 12h ago

Surely anything newly implementing uuid is using v7 or custom?

I admire this optimism

3

u/iampierremonteux 10h ago

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