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

SecureRandom class unable to generate faster random nos on faster machines

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 5.0
    • security-libs
    • None

      SecureRandom class takes a longer time to generate PRNG on Linux-Amd -SuSE 8.2 systems.

      Ideally, this process of PRNG should be faster on a faster machine & slower on a slower machine.

      But below are some timings on a different os/hw for generating 20000 random bits, & checking their randomness as per FIPS 140-1.

      j2sesqe.india.sun.com - Solaris9-Sun-Fire-280R-UltraSPARC-III+ - Time 2 sec
      jbackupblr.india.sun.com -Solaris10-Ultra-5/10-UltraSPARC-IIi - Time 5 sec
      jdsn10.india.sun.com - Linux RH-AS3.0 Intel P4 CPU 2.6GHz - Time 2 sec
      jlab324.india.sun.com - Linux-SuSE 8.2-Amd-Athlon HX-1.3 GHz - Time 11 min
      jdsn8.india.sun.com - WinXP Pro-Intel P4 CPU 2.4 GHz - Time 2 sec

      I have attached the source file for testing on any other machines & for debugging & another bug details http://hestia.sfbay.sun.com/cgi-bin/bug?id=5046409, which is the source for this bug.

            andreas Andreas Sterbenz
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: