From c42fc1dd56a651a52b00d03833b00fb800fa5cd9 Mon Sep 17 00:00:00 2001 From: Andrew Purtell Date: Wed, 15 Jul 2015 18:41:34 -0700 Subject: [PATCH] HBASE-14089 Remove unnecessary draw of system entropy from RecoverableZooKeeper --- .../apache/hadoop/hbase/zookeeper/RecoverableZooKeeper.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/RecoverableZooKeeper.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/RecoverableZooKeeper.java index 01124cafaff..c1eb214cce9 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/RecoverableZooKeeper.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/RecoverableZooKeeper.java @@ -20,7 +20,6 @@ package org.apache.hadoop.hbase.zookeeper; import java.io.IOException; import java.lang.management.ManagementFactory; -import java.security.SecureRandom; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; @@ -127,7 +126,7 @@ public class RecoverableZooKeeper { this.sessionTimeout = sessionTimeout; this.quorumServers = quorumServers; try {checkZk();} catch (Exception x) {/* ignore */} - salter = new SecureRandom(); + salter = new Random(); } /**