HBASE-14089 Remove unnecessary draw of system entropy from RecoverableZooKeeper
This commit is contained in:
parent
789d2a94b7
commit
c42fc1dd56
|
@ -20,7 +20,6 @@ package org.apache.hadoop.hbase.zookeeper;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.lang.management.ManagementFactory;
|
import java.lang.management.ManagementFactory;
|
||||||
import java.security.SecureRandom;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -127,7 +126,7 @@ public class RecoverableZooKeeper {
|
||||||
this.sessionTimeout = sessionTimeout;
|
this.sessionTimeout = sessionTimeout;
|
||||||
this.quorumServers = quorumServers;
|
this.quorumServers = quorumServers;
|
||||||
try {checkZk();} catch (Exception x) {/* ignore */}
|
try {checkZk();} catch (Exception x) {/* ignore */}
|
||||||
salter = new SecureRandom();
|
salter = new Random();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue