You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Make Uuids use ThreadLocalRandom
Before this commit `Uuids` used to initiate `Random `at the point when it needs
a random number.
Not only it is not effecient it also produced bad distribution which
resulted in `should_generate_unique_random_uuids_Random` to fail, due to
inability of `Uuids::random `generate unique vales.
* Fix `Uuids.random` to get better distribution
Before this commit it used `random.nextBytes` which made it generate an `int`
and crop it to `byte`, since it is quasi random, it produces bad
distribution and lead to have more UUID collisions.
0 commit comments