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 alternate version to UUIDv7 generator that uses random values on every call (not just for different timestamp) #94

Merged
merged 4 commits into from
Feb 21, 2024

Conversation

magdel
Copy link
Contributor

@magdel magdel commented Feb 16, 2024

TimeBaseEpochGenerator creates very similar values when calls to generate are made within same millisecond. This may be unsafe in some enviroments. To solve this added TimeBaseEpochRandomGenerator to create random value on every call to generate but still in v7 manner.

…ates very similar values when calls to generate are made within same millisecond. This may be unsafe in some enviroments. To solve this added TimeBaseEpochRandomGenerator to create random value on every call to generate but still in v7 manner.
@magdel magdel force-pushed the feature/epochRandom branch from 1ab00fe to ebf9312 Compare February 19, 2024 07:11
* {@link com.fasterxml.uuid.ext.FileBasedTimestampSynchronizer} (or
* equivalent).
*
* @since 4.1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5.0

@cowtowncoder cowtowncoder changed the title Add alternate version to UUIDv7 generator. To generate random values on every call. Add alternate version to UUIDv7 generator that uses random values on every call (not just for different timestamp) Feb 19, 2024
@cowtowncoder
Copy link
Owner

Looks good: I made some minor changes (mostly to javadoc, version references), will merge.

With these changes I am thinking of possibly releasing 5.0.0 in near future.

@magdel
Copy link
Contributor Author

magdel commented Feb 20, 2024

Looking forward for 5.0.0.
Thank you!

@cowtowncoder cowtowncoder merged commit cd9bf67 into cowtowncoder:master Feb 21, 2024
4 checks passed
@cowtowncoder cowtowncoder added this to the 5.0.0 milestone Feb 24, 2024
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

Successfully merging this pull request may close these issues.

2 participants