From a5f21a99d8c489e6375333774214405e91b0632c Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Thu, 17 May 2018 17:35:47 +0800 Subject: [PATCH] --- src/org/redkale/util/Utility.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }