JCLOUDS-1512 - Use SecureRandom in Sha512Crypt

This commit is contained in:
Colm O hEigeartaigh 2019-08-22 10:12:40 +01:00 committed by Andrew Gaul
parent 14ba1abcfb
commit ee880e9f42
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ public class Sha512Crypt {
shadowPrefix = shadowPrefix.substring(0, SALT_LEN_MAX);
}
} else {
java.util.Random randgen = new java.util.Random();
java.util.Random randgen = new java.security.SecureRandom();
StringBuilder saltBuf = new StringBuilder();
while (saltBuf.length() < 16) {