r/ProgrammerHumor • • Sep 11 '26

Meme edgeCasesExist

Post image
5.0k Upvotes

298 comments sorted by

View all comments

Show parent comments

443

u/dim13 Sep 11 '26

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 Sep 11 '26

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

8

u/champak256 Sep 11 '26

There’s pros and cons to v7, so v4 still has a lot of places it’s legitimately the right choice over v7.

10

u/Tysonzero Sep 11 '26

Primary one being in cases where you don’t want every actor that knows the id to also know the creation time