Es gibt eine Menge Fragen, die fragen, ob eine spezifische Initiierung von SecureRandom "gut" ist, aber ich konnte keine Faustregel finden.Was ist der beste Weg, um ein "gutes" SecureRandom zu erstellen?
Was ist der beste Weg, um eine "gute" zufällige SecureRandom zu erstellen?
// 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/137212/how-to-solve-performance-problem-with-java-securerandom#comment68934647_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 :(
SecureRandom secureRandom = new SecureRandom.getInstanceStrong()?
Other?