KEYCLOAK-1335

Slow startup in OpenStack
This commit is contained in:
Stian Thorgersen 2015-10-13 07:00:47 +02:00
parent 4fbf6841be
commit 4ce93171ba

View file

@ -90,14 +90,7 @@ public class Pbkdf2PasswordEncoder {
public static byte[] getSalt() { public static byte[] getSalt() {
byte[] buffer = new byte[16]; byte[] buffer = new byte[16];
SecureRandom secureRandom; SecureRandom secureRandom = new SecureRandom();
try {
secureRandom = SecureRandom.getInstance(RNG_ALGORITHM);
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException("RNG algorithm not found");
}
secureRandom.nextBytes(buffer); secureRandom.nextBytes(buffer);
return buffer; return buffer;