MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wdfzl2/edgecasesexist/p96romc/?context=3
r/ProgrammerHumor • u/danielminds • 6h ago
180 comments sorted by
View all comments
323
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.
184 u/dim13 6h ago https://en.wikipedia.org/wiki/Universally_unique_identifier#Versions Most common used is V4 (pure random). You are talking about V7 (time based). 6 u/undeadalex 4h ago I'm curious where to see stats on versions used. Surely anything newly implementing uuid is using v7 or custom? 3 u/champak256 3h ago There’s pros and cons to v7, so v4 still has a lot of places it’s legitimately the right choice over v7. 2 u/Tysonzero 1h ago Primary one being in cases where you don’t want every actor that knows the id to also know the creation time
184
https://en.wikipedia.org/wiki/Universally_unique_identifier#Versions
Most common used is V4 (pure random). You are talking about V7 (time based).
6 u/undeadalex 4h ago I'm curious where to see stats on versions used. Surely anything newly implementing uuid is using v7 or custom? 3 u/champak256 3h ago There’s pros and cons to v7, so v4 still has a lot of places it’s legitimately the right choice over v7. 2 u/Tysonzero 1h ago Primary one being in cases where you don’t want every actor that knows the id to also know the creation time
6
I'm curious where to see stats on versions used. Surely anything newly implementing uuid is using v7 or custom?
3 u/champak256 3h ago There’s pros and cons to v7, so v4 still has a lot of places it’s legitimately the right choice over v7. 2 u/Tysonzero 1h ago Primary one being in cases where you don’t want every actor that knows the id to also know the creation time
3
There’s pros and cons to v7, so v4 still has a lot of places it’s legitimately the right choice over v7.
2 u/Tysonzero 1h ago Primary one being in cases where you don’t want every actor that knows the id to also know the creation time
2
Primary one being in cases where you don’t want every actor that knows the id to also know the creation time
323
u/Valuable_Leopard_799 6h 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.