This commit is contained in:
Redkale
2018-05-17 17:41:52 +08:00
parent a5f21a99d8
commit 4dbd6b57f8

View File

@@ -144,7 +144,7 @@ public final class Utility {
*/ */
public static SecureRandom createRandom() { public static SecureRandom createRandom() {
SecureRandom random = new SecureRandom(); SecureRandom random = new SecureRandom();
byte[] bs = new byte[16]; byte[] bs = new byte[32];
random.nextBytes(bs); random.nextBytes(bs);
random.setSeed(bs); random.setSeed(bs);
return random; return random;