hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [5/6] hbase git commit: HBASE-14089 Remove unnecessary draw of system entropy from RecoverableZooKeeper
Date Thu, 16 Jul 2015 01:54:22 GMT
HBASE-14089 Remove unnecessary draw of system entropy from RecoverableZooKeeper


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/31ad8fb2
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/31ad8fb2
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/31ad8fb2

Branch: refs/heads/branch-1.0
Commit: 31ad8fb24f8582a295acae8d74c2277b02e5490d
Parents: fac3908
Author: Andrew Purtell <apurtell@apache.org>
Authored: Wed Jul 15 18:41:34 2015 -0700
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Wed Jul 15 18:41:54 2015 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/zookeeper/RecoverableZooKeeper.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/31ad8fb2/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/RecoverableZooKeeper.java
----------------------------------------------------------------------
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 f23ea4a..11ed8d7 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();
   }
 
   /**


Mime
View raw message