Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-11230

Remove all usages of java.util.UUID.randomUUID()

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • None
    • 9.4.17.Final, 10.1.1.Final
    • CLI, Core, Embedded Querying, Server
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: