]
Dan Berindei reassigned ISPN-11230:
-----------------------------------
Assignee: Dan Berindei
Remove all usages of java.util.UUID.randomUUID()
------------------------------------------------
Key: ISPN-11230
URL:
https://issues.redhat.com/browse/ISPN-11230
Project: Infinispan
Issue Type: Enhancement
Components: CLI, Core, Embedded Querying, Server
Affects Versions: 9.4.17.Final, 10.1.1.Final
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Major
Fix For: 11.0.0.Final
{{java.util.UUID.randomUUID()}} uses a "cryptographically strong pseudo random
number generator", which reads from {{/dev/urandom}} (or even {{/dev/random}} in
older Java versions), and then computes an expensive cryptographic digest on the bytes it
read.
We don't need a cryptographically strong random number, so we can use
{{org.infinispan.commons.util.Util.threadLocalRandomUUID()}} instead.