From 09011951470e343d8268823387e8057db313e0f5 Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Thu, 17 May 2018 19:49:27 +0800 Subject: [PATCH] --- src/org/redkale/util/Utility.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/redkale/util/Utility.java b/src/org/redkale/util/Utility.java index 5f659cb30..2c0f0294b 100644 --- a/src/org/redkale/util/Utility.java +++ b/src/org/redkale/util/Utility.java @@ -158,7 +158,7 @@ public final class Utility { * * @return 随机元素 */ - public static int random(SecureRandom random, int[] array) { + public static int random(Random random, int[] array) { int rs = random.nextInt(); return rs < 0 ? array[-rs % array.length] : array[rs % array.length]; } @@ -171,7 +171,7 @@ public final class Utility { * * @return 随机元素 */ - public static long random(SecureRandom random, long[] array) { + public static long random(Random random, long[] array) { int rs = random.nextInt(); return rs < 0 ? array[-rs % array.length] : array[rs % array.length]; }