RFR: 8283083: java.util.random L128X256MixRandom constructor fails to use byte[] seed
Joe Darcy
darcy at openjdk.java.net
Tue Apr 12 17:39:52 UTC 2022
On Tue, 12 Apr 2022 17:30:07 GMT, Jim Laskey <jlaskey at openjdk.org> wrote:
> All generators support the byte[] however many ignore the argument. "If byte[] seed is not supported by an [algorithm](https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/util/random/package-summary.html#algorithms) then the no argument form of create is used." Currently only the LXM algorithms use byte[]. If other algorithms get added then the test can be expanded.
Sounds good; thanks for the additional context.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8207
More information about the core-libs-dev
mailing list