logoalt Hacker News

mittermayryesterday at 8:35 AM2 repliesview on HN

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.


Replies

flohofwoeyesterday at 9:05 AM

UUID v4 consists of only random bits, no timestamp info.

show 1 reply
beardywyesterday at 12:12 PM

But surely hashing the date still allows for a future collision. Leaving the date as is means it will never collide after that one second has passed.