From ee880e9f4280d943536e1c5c82949bbf1f527fb3 Mon Sep 17 00:00:00 2001 From: Colm O hEigeartaigh Date: Thu, 22 Aug 2019 10:12:40 +0100 Subject: [PATCH] JCLOUDS-1512 - Use SecureRandom in Sha512Crypt --- .../main/java/org/jclouds/compute/functions/Sha512Crypt.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compute/src/main/java/org/jclouds/compute/functions/Sha512Crypt.java b/compute/src/main/java/org/jclouds/compute/functions/Sha512Crypt.java index c096b431f4..84058c64c2 100644 --- a/compute/src/main/java/org/jclouds/compute/functions/Sha512Crypt.java +++ b/compute/src/main/java/org/jclouds/compute/functions/Sha512Crypt.java @@ -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) {