diff --git a/src/org/redkale/util/Utility.java b/src/org/redkale/util/Utility.java index 74c4fe2d6..3fa7a2c56 100644 --- a/src/org/redkale/util/Utility.java +++ b/src/org/redkale/util/Utility.java @@ -144,7 +144,9 @@ public final class Utility { */ public static SecureRandom createRandom() { SecureRandom random = new SecureRandom(); - random.setSeed(SecureRandom.getSeed(32)); + byte[] bs = new byte[16]; + random.nextBytes(bs); + random.setSeed(bs); return random; }