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

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

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: