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

new SecureRandom() may take close to 2 MINUTES

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.7
    • security-libs



      Name: jl28948 Date: 10/30/98


      In version JDK1.1.7 setting up the 20 byte seed
      value as done by the class java.security.SeedGenerator
      takes very long, like in the order of minutes
      instead of seconds. Looking at the source in
      java/security/SeedGenerator.java the problem is
      probably that the average value of the variable
      "latch" is not large enough when it is used to
      increment the variable "counter" from 0 to 64000.
      On average it takes say 20 increments of
      counter to reach 64000, and this has to be
      repeated 20 times. Each increment takes 250ms,
      so in total about a 100 seconds.
      (Review ID: 41003)
      ======================================================================

            claisunw Charlie Lai (Inactive)
            jlueheorcl Jan Luehe (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: