[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug #835] Incorrect implementation of SHA1PRNG.java
From: |
nobody |
Subject: |
[Bug #835] Incorrect implementation of SHA1PRNG.java |
Date: |
Tue, 23 Jul 2002 11:03:59 -0400 |
=================== BUG #835: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=835&group_id=85
Changes by: Anonymous user Date: 2002-Jul-23 11:03
------------------ Additional Follow-up Comments ----------------------------
It's been a couple of weeks already, so I may not remember all the details.
There are two issues. The first one is that if you try to generate <=20 random
numbers, given the same seed, classpath implementation gives completely
different sequence of numbers from that of Sun's code (maybe it generates the
same output disregarding seed value - I do not remember). The second issue is
that if you try to generate >20 random numbers, classpath starts repeating
previously generated 20 values instead of generating new ones.
I will try to find my tests and submit them later.
=================== BUG #835: FULL BUG SNAPSHOT ===================
Submitted by: None Project: classpath
Submitted on: 2002-Jul-09 20:23
Severity: 5 - Major Resolution: None
Assigned to: None Status: Open
Platform Version: None
Summary: Incorrect implementation of SHA1PRNG.java
Original Submission: SHA1PRNG.java is implemented incorrectly and produces
completely wrong sequence of pseudo-random numbers.
Follow-up Comments
*******************
-------------------------------------------------------
Date: 2002-Jul-23 11:03 By: None
It's been a couple of weeks already, so I may not remember all the details.
There are two issues. The first one is that if you try to generate <=20 random
numbers, given the same seed, classpath implementation gives completely
different sequence of numbers from that of Sun's code (maybe it generates the
same output disregarding seed value - I do not remember). The second issue is
that if you try to generate >20 random numbers, classpath starts repeating
previously generated 20 values instead of generating new ones.
I will try to find my tests and submit them later.
-------------------------------------------------------
Date: 2002-Jul-22 19:15 By: mark
Could you provide more information? What were you expecting? Do you have some
sample code or a test case?
No files currently attached
For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=835&group_id=85