RFR: 8248862: Implement Enhanced Pseudo-Random Number Generators [v12]
jlaskey at openjdk.java.net
Wed Jan 6 16:28:58 UTC 2021
On Wed, 6 Jan 2021 16:09:25 GMT, Brett Okken <github.com+2996845+bokken at openjdk.org> wrote:
>> 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?
In practice terms yes. The point is that the user should not assume they will be getting the same algorithm each time.
More information about the core-libs-dev