<div dir="ltr"><div>Hi,</div><div><br></div><div>The Javadoc for RandomGenerator.<span class="element-name">nextLong</span><span class="gmail-parameters">(longĀ origin,
longĀ bound)</span>
has this to say:<br><br>
<dt>Implementation Requirements:</dt><dt>The default implementation checks that <code>origin</code> and
<code>bound</code> are positive <code>longs</code></dt></div><div><br></div><div><code style="font-family:arial,sans-serif">This doesn't seem to be true. The default implementation checks that origin and bound are a valid range (that bound >= origin). The implementation doesn't reject negative inputs.</code></div><div><code style="font-family:arial,sans-serif"><br></code></div><div><code style="font-family:arial,sans-serif">The same note appears in the two-arg version of nextInt.</code></div><div><code style="font-family:arial,sans-serif"><br></code></div><div><code style="font-family:arial,sans-serif">The note for e.g. nextDouble is correct and says "</code>The default implementation verifies that the <code>origin</code>
and <code>bound</code> are valid"</div><div><br></div><div>I'm wondering if the notes for nextLong and nextInt should be updated to match?<br>
</div></div>