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() {
|
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;
|
||||||
|
|
Loading…
Reference in a new issue