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