From 8176ec1b0ab6e4147d08d2f2b37b4f7ad6a628d6 Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Thu, 17 May 2018 19:42:34 +0800 Subject: [PATCH] --- src/org/redkale/util/Utility.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/org/redkale/util/Utility.java b/src/org/redkale/util/Utility.java index fd7adc755..3fa7a2c56 100644 --- a/src/org/redkale/util/Utility.java +++ b/src/org/redkale/util/Utility.java @@ -143,12 +143,7 @@ public final class Utility { * @return SecureRandom */ public static SecureRandom createRandom() { - SecureRandom random; - try { - random = SecureRandom.getInstance("SHA1PRNG"); - } catch (Exception e) { - random = new SecureRandom(); - } + SecureRandom random = new SecureRandom(); byte[] bs = new byte[16]; random.nextBytes(bs); random.setSeed(bs);