[infinispan-issues] [JBoss JIRA] (ISPN-11230) Remove all usages of java.util.UUID.randomUUID()

Dan Berindei (Jira) issues at jboss.org
Tue Jan 28 06:05:44 EST 2020


Dan Berindei created ISPN-11230:
-----------------------------------

             Summary: 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: 10.1.1.Final, 9.4.17.Final
            Reporter: Dan Berindei
             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.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list