RFR: 8248862: Implement Enhanced Pseudo-Random Number Generators [v12]

Brett Okken github.com+2996845+bokken at openjdk.java.net
Wed Jan 6 16:11:59 UTC 2021


On Wed, 6 Jan 2021 15:36:21 GMT, Jim Laskey <jlaskey at openjdk.org> wrote:

>> This PR is to introduce a new random number API for the JDK. The primary API is found in RandomGenerator and RandomGeneratorFactory. Further description can be found in the JEP https://openjdk.java.net/jeps/356 .
>> 
>> javadoc can be found at http://cr.openjdk.java.net/~jlaskey/prng/doc/api/java.base/java/util/random/package-summary.html
>> 
>> old PR:  https://github.com/openjdk/jdk/pull/1273
>
> Jim Laskey has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Correct range used by nextBytes

src/java.base/share/classes/java/util/random/RandomGenerator.java line 147:

> 145:      *
> 146:      * @implNote  Since algorithms will improve over time, there is no
> 147:      * guarantee that this method will return the same algorithm each time.

is there a guarantee that within a running jvm each invocation will return the same algorithm?

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

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



More information about the security-dev mailing list