diff --git a/src/main/java/helpers/ScryptHelper.java b/src/main/java/helpers/ScryptHelper.java index be23a56..99a7906 100644 --- a/src/main/java/helpers/ScryptHelper.java +++ b/src/main/java/helpers/ScryptHelper.java @@ -129,7 +129,7 @@ private static byte[] salt() { try { byte[] salt = new byte[saltSize]; - SecureRandom.getInstance("SHA1PRNG").nextBytes(salt); + SecureRandom.getInstanceStrong().nextBytes(salt); return salt; } catch (NoSuchAlgorithmException ex) { throw new IllegalStateException("SHA1PRNG not supported on this JVM!", ex);