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

java.security.SecureRandom.nextBytes() takes a long time.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 5.0u11
    • security-libs

      FULL PRODUCT VERSION :
      1.5.0_11-b03

      ADDITIONAL OS VERSION INFORMATION :
      Red Hat Linux version 5(RHEL5)

      A DESCRIPTION OF THE PROBLEM :
      When we run our java based tool on RHEL5 is taking a long time to complete. After doing some investigation and debugging, found out that the SecureRandom methods (especially SecureRandom.nextBytes) were taking a long time(in the matter of seconds and even a minute at times) to complete.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      A stand-alone program which uses SecureRandom.nextBytes should be able to reproduce the problem onm RHEL5.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The intended operation will take a while to complete. This performance is not acceptable. The performance should match with what we see on RHEL5.
      ACTUAL -
      The intended operation will take a while to complete.

      REPRODUCIBILITY :
      This bug can be reproduced often.

            wetmore Bradford Wetmore
            mbykov Misha Bykov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: