8042904: apple.security.KeychainStore.getSalt() calling generateSeed()
authorcoffeys
Tue, 28 May 2019 19:19:58 +0100
changeset 55063 51c699875f7c
parent 55062 45128070fd15
child 55065 103f9068c39f
8042904: apple.security.KeychainStore.getSalt() calling generateSeed() Reviewed-by: jnimeh
src/java.base/macosx/classes/apple/security/KeychainStore.java
--- a/src/java.base/macosx/classes/apple/security/KeychainStore.java	Tue May 28 10:54:59 2019 -0700
+++ b/src/java.base/macosx/classes/apple/security/KeychainStore.java	Tue May 28 19:19:58 2019 +0100
@@ -1050,7 +1050,7 @@
         if (random == null) {
             random = new SecureRandom();
         }
-        salt = random.generateSeed(SALT_LEN);
+        random.nextBytes(salt);
         return salt;
     }