There are a lot of questions asking if a specific initiation of SecureRandom is "good", but I couldn't find a rule of thumb.
What's the best way to create a "good" random SecureRandom?
// Fast // Is it a good random? SecureRandom secureRandom = new SecureRandom()? // Freezes for a few seconds after being used several times - until getting a random enough seed. // See http://stackoverflow.com/questions/1372 ... 647_137212 // Is it a good random? SecureRandom secureRandom = new SecureRandom(SecureRandom.getSeed(20))? // Freezes for a very long time. Waited minutes and still no return
Источник: https://stackoverflow.com/questions/408 ... curerandom
Мобильная версия