This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]