apurtell commented on a change in pull request #3936:
URL: https://github.com/apache/hbase/pull/3936#discussion_r768071320
##########
File path:
hbase-common/src/test/java/org/apache/hadoop/hbase/util/TestAvlUtil.java
##########
@@ -54,9 +55,8 @@ public void testAvlTreeCrud() {
final TreeMap<Integer, Object> treeMap = new TreeMap<>();
TestAvlNode root = null;
- final Random rand = new Random();
for (int i = 0; i < NELEM; ++i) {
- int key = rand.nextInt(MAX_KEY);
+ int key = RNG.nextInt(MAX_KEY);
Review comment:
I don't care really the objective is reuse of the Random object
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]