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

Fix #124: Manage entropy bits in TimeBasedEpochGenerator #125

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chadparry
Copy link

This implementation guards against overflow by ensuring that the seeded counter starts off with the most significant bit cleared. It also doesn't use UUIDUtil.constructUUID, which discards some of the entropy bits, leading to duplicated UUIDs.

@chadparry
Copy link
Author

Feel free to change this to match your style or reject it. :)

@cowtowncoder
Copy link
Owner

Ok thanks! Looks like I need to read this with some thought, due to changes.

Happy New Year & thank you again!

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