maedhroz commented on code in PR #3194:
URL: https://github.com/apache/cassandra/pull/3194#discussion_r1540256807


##########
test/unit/org/apache/cassandra/index/sai/utils/SAIRandomizedTester.java:
##########
@@ -149,6 +159,11 @@ public static double randomDoubleBetween(double min, 
double max)
         return min == max ? min : min + (max - min) * getRandom().nextDouble();
     }
 
+    public static double randomDouble()
+    {
+        return getRandom().nextDouble();
+    }
+

Review Comment:
   Looking at these three methods, it seems like `nextDouble()` and 
`randomDouble()` produce the same result, since `0 + (1 - 0) * 
getRandom().nextDouble()` == `1 * getRandom().nextDouble()` == 
`getRandom().nextDouble()` right?



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to