Skip to content

Conversation

@cigaly
Copy link
Contributor

@cigaly cigaly commented Dec 16, 2024

Jira issue HHH-18947

Changes suggested here are using randomly created 62 bytes counter (instead of current 14 bits counter, and 48 bits random bytes) that is incrementing by random value for each new generated UUID. This is improving entropy, and it is now comparable to that of UUID v6.

[Please describe here what your change is about]


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


          This will add approximately ten bits of entropy to generated UUID,
          while preserving uniqueness and monotonicity
@beikov beikov merged commit 2215d2b into hibernate:main Dec 17, 2024
22 of 23 checks passed
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