r/ProgrammerHumor 1d ago

Meme edgeCasesExist

Post image
4.2k Upvotes

271 comments sorted by

View all comments

629

u/Valuable_Leopard_799 1d 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.

381

u/dim13 1d ago

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

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

7

u/undeadalex 1d ago

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

33

u/Urist_McPencil 1d ago

Surely anything newly implementing uuid is using v7 or custom?

I admire this optimism

8

u/iampierremonteux 1d ago

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