3 ms·
I ran some numbers by GPT-5[0], and for the scenario of generating 10k UUIDs in one ms every 10ms, over three years, it came up with a 0.0025% chance of collisi
by Zambyte 1y ago
I ran some numbers by GPT-5[0], and for the scenario of generating 10k UUIDs in one ms every 10ms, over three years, it came up with a 0.0025% chance of collision for UUIDv7, and a 0.000000084% chance for collision with UUIDv4.
[0] https://kagi.com/assistant/dd7d8c48-44e4-499b-9f2f-33663d1258fc https://kagi.com/assistant/dd7d8c48-44e4-499b-9f2f-33663d125...
- 8organicbits 1y agoI checked against my notes, I see about the same numbers using the `n**2` taylor series approximation. I missed that the probability of `>=1` collision is about the same as exactly one collision, but I suspect that's quite reasonable as this scale.