changeset 56424:51c699875f7c

8042904: apple.security.KeychainStore.getSalt() calling generateSeed() Reviewed-by: jnimeh
author coffeys
date Tue, 28 May 2019 19:19:58 +0100
parents 45128070fd15
children 103f9068c39f
files src/java.base/macosx/classes/apple/security/KeychainStore.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }