[ 
https://issues.apache.org/jira/browse/LANG-1592?focusedWorklogId=461444&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-461444
 ]

ASF GitHub Bot logged work on LANG-1592:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 21/Jul/20 07:55
            Start Date: 21/Jul/20 07:55
    Worklog Time Spent: 10m 
      Work Description: aherbert opened a new pull request #586:
URL: https://github.com/apache/commons-lang/pull/586


   The method has been changed to use exclusively the long datatype to
   generate the value.
   
   The implementation is taken from the Commons RNG project.


----------------------------------------------------------------
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:
[email protected]


Issue Time Tracking
-------------------

            Worklog Id:     (was: 461444)
    Remaining Estimate: 0h
            Time Spent: 10m

> The random number generated by RandomUtils exceeds the exclusive parameter
> --------------------------------------------------------------------------
>
>                 Key: LANG-1592
>                 URL: https://issues.apache.org/jira/browse/LANG-1592
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.11
>            Reporter: huang pingcai
>            Priority: Minor
>         Attachments: image-2020-07-21-14-35-27-870.png
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {code:java}
> @Test
> public void test() {
>     while (RandomUtils.nextLong(12900000000001L, 12900000000016L) != 
> 12900000000016L) {
>     }
>     System.out.println("should not be invoked");
> }
> {code}
> !image-2020-07-21-14-35-27-870.png|width=315,height=182!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to