This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug classpath/24481] SecureRandom.setSeed has no impact
- From: "csm at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 11 Apr 2006 20:58:56 -0000
- Subject: [Bug classpath/24481] SecureRandom.setSeed has no impact
- References: <bug-24481-11561@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from csm at gnu dot org 2006-04-11 20:58 -------
I'm not sure I understand your situation. Are you doing:
SecureRandom r = new SecureRandom ();
for (...)
r.getBytes (...); // produces the same bytes each time
Or
for (...)
{
SecureRandom r = new SecureRandom ();
r.getBytes (...); // produces the same bytes each time
}
I'd expect the second case to produce the same bytes on each iteration, but not
the first case.
Also, see bug 27111, which tracks the issue of SecureRandom instances not being
seeded properly.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24481