http://bugzilla.novell.com/show_bug.cgi?id=610239
http://bugzilla.novell.com/show_bug.cgi?id=610239#c2
--- Comment #2 from Michal Vyskocil 2010-05-31 11:37:16 UTC ---
A slightly modified test program and default
securerandom.source=file:/dev/urandom
$ diff -u MainClass.java.old MainClass.java
--- MainClass.java.old 2010-05-31 13:29:03.960543631 +0200
+++ MainClass.java 2010-05-31 13:29:49.456866971 +0200
@@ -3,7 +3,8 @@
public class MainClass {
public static void main(String args[]) throws Exception {
- SecureRandom rng = SecureRandom.getInstance("SHA1PRNG");
+ SecureRandom rng = new SecureRandom();
+ System.out.println("SecureRandom.algorithm: " + rng.getAlgorithm() );
rng.setSeed(711);
int numberToGenerate = 999;
$ strace -f -eopen,close,read java MainClass
[pid 16731] open("/dev/urandom", O_RDONLY) = 9
...
# urandom is not closed here and still have fd 9
# just a lot of jre/lib/amd64/jli/libjli.so reads (fd 3) here
..
[pid 16731] read(9, "\254e\345AP\215\343U\36q]a\372\275\360\260\237.\371,", 20)
= 20
[pid 16731] read(3,
"PK\3\4\n\0\0\0\0\0\370k\274<\23\222v\33\346\31\0\0\346\31\0\0+\0\0\0", 30) =
30
[pid 16731] read(3,
"\312\376\272\276\0\0\0001\0\236\n\0%\0]\7\0^\10\0_\10\0`\n\0\2\0a\n\0b"...,
6630) = 6630
[pid 16731] read(9,
"\0\36\f\26\221\266$\251\4\350A0\255\337\224\254FTZ\16p\301\260\rv\336u\n\3131D\26",
32) = 32
[pid 16731] read(9,
"\0054\3\222\240?\340K\375\373#\\X\7T\34\340`\203\265\206C\211-\314b\216>\256ep6",
32) = 32
[pid 16731] read(9,
"\310\274=\331)@Z\324\234y\223L\6\33G\367\267kyE\0\200!\0-az_X\332 \332", 32) =
32
[pid 16731] read(9,
"Qt\4\313\2015\211\330\4\345<\303Z\335f\277\342\0\362\0+\231\257j8\274\35\362\351\330",
32) = 32
..
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.