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

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

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

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

      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.

              Unassigned Unassigned
              dberinde@redhat.com Dan Berindei (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: