[Bug classpath/24481] SecureRandom.setSeed has no impact
csm at gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Apr 11 20:58:00 GMT 2006
------- 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
More information about the Gcc-bugs
mailing list