bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/24481] SecureRandom.setSeed has no impact


From: csm at gnu dot org
Subject: [Bug classpath/24481] SecureRandom.setSeed has no impact
Date: 11 Apr 2006 20:58:56 -0000


------- 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]