KEYCLOAK-1335
Slow startup in OpenStack
This commit is contained in:
parent
4fbf6841be
commit
4ce93171ba
1 changed files with 1 additions and 8 deletions
|
@ -90,14 +90,7 @@ public class Pbkdf2PasswordEncoder {
|
|||
public static byte[] getSalt() {
|
||||
byte[] buffer = new byte[16];
|
||||
|
||||
SecureRandom secureRandom;
|
||||
|
||||
try {
|
||||
secureRandom = SecureRandom.getInstance(RNG_ALGORITHM);
|
||||
} catch (NoSuchAlgorithmException e) {
|
||||
throw new RuntimeException("RNG algorithm not found");
|
||||
}
|
||||
|
||||
SecureRandom secureRandom = new SecureRandom();
|
||||
secureRandom.nextBytes(buffer);
|
||||
|
||||
return buffer;
|
||||
|
|
Loading…
Reference in a new issue