8042904: apple.security.KeychainStore.getSalt() calling generateSeed()

Reviewed-by: jnimeh
This commit is contained in:
Sean Coffey 2019-05-28 19:19:58 +01:00
parent f5f5767eae
commit 61c0225c71

View File

@ -1050,7 +1050,7 @@ public final class KeychainStore extends KeyStoreSpi {
if (random == null) {
random = new SecureRandom();
}
salt = random.generateSeed(SALT_LEN);
random.nextBytes(salt);
return salt;
}