I'd like to seed a secure random generator myself using bytes, e.g.:
SecureRandom sha1prng = SecureRandom.getInstance("SHA1PRNG");
sha1prng.setSeed(new byte[] { 2, -4, 127, -54 });
System.out.println(sha1prng.nextLong());
I found a number of examples on the net, and most of them use a byte array of length 20. So, my question is how long should this array actually be? Is there any recommendation naming a lower and an upper limit? Would it make it more unpredictable if I used for instance 1000 bytes rather than just 20?
Cheers, Andy