RFR: 8338395: Add test coverage for instantiating NativePRNG with SecureRandomParameters
Fernando Guallini
fguallini at openjdk.org
Thu Aug 15 12:41:58 UTC 2024
In order to improve performance when instantiating NativePRNG, a dummy constructor was added in the PR: https://github.com/openjdk/jdk/pull/17560 which takes and ignores a `java.security.SecureRandomParameters`, throwing an exception if any parameter is passed.
This PR adds test coverage for those scenarios where the constructor is called passing a not null parameter.
-------------
Commit messages:
- add coverage for scenario when NativePRNG is instantiated with a param
Changes: https://git.openjdk.org/jdk/pull/20592/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20592&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8338395
Stats: 26 lines in 1 file changed: 24 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/20592.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/20592/head:pull/20592
PR: https://git.openjdk.org/jdk/pull/20592
More information about the security-dev
mailing list