You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2019/08/20 09:18:11 UTC
[GitHub] [commons-lang] kinow commented on a change in pull request #425:
RandomUtils : comment error
kinow commented on a change in pull request #425: RandomUtils : comment error
URL: https://github.com/apache/commons-lang/pull/425#discussion_r315588120
##########
File path: src/main/java/org/apache/commons/lang3/RandomUtils.java
##########
@@ -166,23 +166,23 @@ public static long nextLong() {
*
* @param startInclusive
* the smallest value that can be returned, must be non-negative
- * @param endInclusive
- * the upper bound (included)
+ * @param endExclusive
Review comment:
Ah, got it. It appeared to be inclusive, but looking at the `RandomUtils` implementation, it uses only `java.util.Random` (constant, not parametrized). And the methods used here, e.g. `.nextDouble()` is [inclusive, exclusive).
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services