<div dir="ltr">Thanks, filed
9077206.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den fre. 21. jun. 2024 kl. 21.06 skrev Raffaello Giulietti <<a href="mailto:raffaello.giulietti@oracle.com">raffaello.giulietti@oracle.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
your observation seems correct.<br>
<br>
In order to file a properly tracked bug report, please proceed according <br>
to this guide:<br>
<br>
<a href="https://docs.oracle.com/en/java/javase/22/troubleshoot/submit-bug-report.html" rel="noreferrer" target="_blank">https://docs.oracle.com/en/java/javase/22/troubleshoot/submit-bug-report.html</a><br>
<br>
Thanks<br>
<br>
<br>
<br>
On 2024-06-21 19:12, Stig Rohde Døssing wrote:<br>
> Hi,<br>
> <br>
> The Javadoc for RandomGenerator.nextLong(long origin, long bound) has <br>
> this to say:<br>
> <br>
> Implementation Requirements:<br>
> The default implementation checks that |origin| and |bound| are positive <br>
> |longs|<br>
> <br>
> |This doesn't seem to be true. The default implementation checks that <br>
> origin and bound are a valid range (that bound >= origin). The <br>
> implementation doesn't reject negative inputs.|<br>
> |<br>
> |<br>
> |The same note appears in the two-arg version of nextInt.|<br>
> |<br>
> |<br>
> |The note for e.g. nextDouble is correct and says "|The default <br>
> implementation verifies that the |origin| and |bound| are valid"<br>
> <br>
> I'm wondering if the notes for nextLong and nextInt should be updated to <br>
> match?<br>
</blockquote></div>