Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8156606

java/security/SecureRandom/Serialize.java gets time out in Linux

XMLWordPrintable

      java/security/SecureRandom/Serialize.java getting time out in linux platform.

      Analysis:
      The test waits for Entrophy to seed itself but there is Not entropy on /dev/random on Linux.

      Fix Required:
      1. Call setSeed() before the 1st reseed() or nextBytes() and it will not hang.
      Or,
      2. Set the system property java.security.egd to /dev/urandom will get entropy from this device and it will not hang.

            asmotrak Artem Smotrakov
            ssahoo Sibabrata Sahoo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: