| ▲ | beardyw 3 hours ago | ||||||||||||||||
Just a stupid question, but why not append the date, even in seconds as hex. It's just a few bytes and would guarantee that everything OK now will be OK in the future? | |||||||||||||||||
| ▲ | flohofwoe 2 hours ago | parent | next [-] | ||||||||||||||||
You can just use a different UUID variant which includes timestamp data instead (e.g. v1 or v7), there are also variants which include the MAC address. | |||||||||||||||||
| ▲ | pan69 2 hours ago | parent | prev | next [-] | ||||||||||||||||
> but why not append the date And use uuid v5 to hash it :) | |||||||||||||||||
| ▲ | mittermayr 3 hours ago | parent | prev [-] | ||||||||||||||||
yeah, any sort of additional semi-random data could've helped prevent this, I'm sure. That, however, is also kind of the idea of UUIDv4, it has lots of randomness and time built in already. | |||||||||||||||||
| |||||||||||||||||