JDK-8264791 : java/util/Random/RandomTestBsi1999.java failed "java.security.SecureRandom nextFloat consecutive"
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • CPU: x86_64
  • Submitted: 2021-04-06
  • Updated: 2021-04-12
  • Resolved: 2021-04-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17
17 b17Fixed
Related Reports
Relates :  
Description
The following test failed in the JDK17 CI:

java/util/Random/RandomTestBsi1999.java

Here's a snippet from the log file:

----------System.err:(15/919)----------
SecureRandom
  run test failure for java.security.SecureRandom nextFloat consecutive (10220 1-bits)
  testRngBsi1999Int glitchjava.lang.RuntimeException: 2 fails detected
	at RandomTestBsi1999.exceptionOnFail(RandomTestBsi1999.java:108)
	at RandomTestBsi1999.main(RandomTestBsi1999.java:451)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.base/java.lang.Thread.run(Thread.java:831)

JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test

result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 2 fails detected

This is a new test recently added by:

JDK-8248862 Implement Enhanced Pseudo-Random Number Generators

There are no special JVM args for this test task.
Comments
The fix for this bug is in jdk-17+17-1390.
07-04-2021

Changeset: 0f13e227 Author: Jim Laskey <jlaskey@openjdk.org> Date: 2021-04-06 17:05:42 +0000 URL: https://git.openjdk.java.net/jdk/commit/0f13e227
06-04-2021

[~jlaskey] - Can you take a look at this failure? It's a new test that was added by JDK-8248862.
06-04-2021