RFR: 8202449: overflow handling in Random.doubles [v3]

Raffaello Giulietti duke at openjdk.java.net
Wed May 25 10:52:50 UTC 2022


On Tue, 24 May 2022 12:58:45 GMT, Raffaello Giulietti <duke at openjdk.java.net> wrote:

>> Extend the range of Random.doubles(double, double) and similar methods.
>
> Raffaello Giulietti has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8202449: overflow handling in Random.doubles

`Random.doubles(double, double)` and similar methods depend on `RandomGenerator.nextDouble(double, double)`.

Currently, this method is specified to throw when the range [origin, bound) given by the arguments is so large that its size (bound - origin) overflows. Since the proposed implementation doesn't suffer from this limitation, the specification needs to be modified, thus the need for a CSR.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8791


More information about the core-libs-dev mailing list