RFR: 8283083: java.util.random L128X256MixRandom constructor fails to use byte[] seed

Raffaello Giulietti duke at openjdk.java.net
Tue Apr 12 17:16:42 UTC 2022


On Tue, 12 Apr 2022 15:37:19 GMT, Raffaello Giulietti <duke at openjdk.java.net> wrote:

> Please review this tiny fix.
> 
> A test similar to the code proposed by the bug reporter has been added for the LXM group. It does not pass before the fix and passes after.

Not all random generators expose a (byte[]) constructor.
The test is limited to the LXM group because it is specific for the bug and these generators are known to offer such a constructor. There are others, though.
However, I don't know how to query the factory for constructor parameter types.

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

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


More information about the core-libs-dev mailing list