-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collision probability #71
Comments
Define probability? |
@peterbourgon For example, take the case of uuid
Source: https://en.wikipedia.org/wiki/Universally_unique_identifier#Collisions |
So collision probability with ULIDs is a function of entropy within the time granularity, which isn't a single fixed number. But it is well-defined, and as far as I'm aware the README and/or documentation explains precisely how that works. What's missing for you? |
oklog/ulid does not use the monotonic algorithm suggested by the spec. It's unfortunately rather naïve. In fact I've been trying to get it clarified or removed altogether, but the repo seems to be unmaintained. |
#71 (comment) #71 (comment) |
As stated in the documentation with normal entropy there are
which means the probability of collision in a given millisecond is 1 out of 1,208,925,819,614,629,174,706,176. If you use monotonic entropy, that probability increases proportionate to your |
Can the readme document the collision probability? A link to another page which has this info is also fine.
The text was updated successfully, but these errors were encountered: