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

Add support for generating other versions of UUIDs #7

Open
jongpie opened this issue Mar 16, 2023 · 0 comments
Open

Add support for generating other versions of UUIDs #7

jongpie opened this issue Mar 16, 2023 · 0 comments
Assignees

Comments

@jongpie
Copy link
Owner

jongpie commented Mar 16, 2023

The current implementation of the code uses v4 of the UUID standard, which is still a very reliable manner of generating a randomized, unique ID. However, there are several newer versions of UUIDs, each with their own use cases. The specs for the newer versions aren't fully finalized, but seem to be I'd like to expand the current code to provide a way to specify which version of UUID is generated.

Some resources that discuss the differences & benefits of some of the new versions:

At the moment, I'm considering these versions:

  • Version 5 for consistently generated UUIDs: This version uses 2 inputs that will consistently produce the same UUID value when the same inputs are used
  • Version 7 for sortable UUIDs: This version uses an Epoch timestamp as part of the UUID generation, which results in the UUIDs being sortable based on when they were created

There are a few other official & unofficial versions, but these seem like the most useful ones to focus on.

@jongpie jongpie self-assigned this Mar 16, 2023
@jongpie jongpie changed the title Add support for generating newer types of UUIDs Add support for generating other versions of UUIDs Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant