Github user asdf2014 commented on a diff in the pull request:
    --- Diff: src/java/main/org/apache/zookeeper/client/ 
    @@ -71,7 +71,7 @@
          *             if serverAddresses is empty or resolves to an empty list
         public StaticHostProvider(Collection<InetSocketAddress> 
serverAddresses) {
    -       sourceOfRandomness = new Random(System.currentTimeMillis() ^ 
    +       sourceOfRandomness = new Random(System.nanoTime() ^ 
    --- End diff --
    Hi, @maoling. Sorry for my belated comment. Indeed, i hadn't been 
considered this case that different clients will own different `hashcode`s. 
Because, in my sistuation, our Zookeeper clusters only give service to some 
apointed BigData components, e.g., [HBase](, 
[Kafka]( etc. Inside these components will 
have settled clients, so them can not offer too many different `hashcode`s.


Reply via email to