From a13489e7750213ecd9e9c9fd24249999aa7100dd Mon Sep 17 00:00:00 2001 From: Dima Spivak Date: Thu, 2 Apr 2015 18:43:00 -0700 Subject: [PATCH] HBASE-13382 IntegrationTestBigLinkedList should use SecureRandom --- .../org/apache/hadoop/hbase/test/IntegrationTestBigLinkedList.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedList.java b/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedList.java index 19a3dbd..0f06e80 100644 --- a/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedList.java +++ b/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedList.java @@ -23,6 +23,7 @@ import java.io.DataOutput; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InterruptedIOException; +import java.security.SecureRandom; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; @@ -303,7 +304,8 @@ public class IntegrationTestBigLinkedList extends IntegrationTestBase { public void initialize(InputSplit arg0, TaskAttemptContext context) throws IOException, InterruptedException { numNodes = context.getConfiguration().getLong(GENERATOR_NUM_ROWS_PER_MAP_KEY, 25000000); - rand = new Random(); + // Use SecureRandom to avoid issue described in HBASE-13382. + rand = new SecureRandom(); } @Override -- 1.9.3 (Apple Git-50)