Skip to content
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

Differences between fuuid and ulid #1

Open
henricook opened this issue May 4, 2021 · 1 comment
Open

Differences between fuuid and ulid #1

henricook opened this issue May 4, 2021 · 1 comment

Comments

@henricook
Copy link

I woukd be interested in knowing the principle differences between fuuid and ulid - https://github.com/ulid/spec

@timClicks
Copy link

timClicks commented May 5, 2021

Am not the author of the library, but have done some research.

Superficially, ULIDs don't look like UUIDs, whereas FUUIDs do. ULIDs' canonical representation is 26 characters, whereas (F)UUIDs are 36.

FUUIDs are not necessarily valid UUIDs either, however. They don't set the version bits to a consistent version, e.g. UUIDv4. That may mean they won't pass downstream validation.

ULIDs have 80 bits of randomness. FUUIDs have either 96 bits of randomness when the timestamp parameter is at whole second precision, and 64 bits of randomness when the timestamp is at nanosecond precision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants