-
Bug
-
Resolution: Fixed
-
P4
-
9
-
b63
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084828 | emb-9 | Brian Burkhalter | P4 | Resolved | Fixed | team |
JDK-8347943 | 8u451 | Ramesh Gangadhar | P4 | Resolved | Fixed | b03 |
Random prng = new Random();
and do not print the seed as this is in any case impossible to obtain from an instance so created. The suggested fix is create the Random instance in a manner which allows the seed to be printed. A second part of the fix is to allow setting the seed via a Java property such as
-Dseed=42
which would be useful in debugging a failure should one occur.
The affected tests are
test/java/lang/Double/ParseHexFloatingPoint.java
test/java/lang/Integer/BitTwiddle.java
test/java/lang/Long/BitTwiddle.java test/java/lang/RandomSeedFactory.java
test/java/lang/Math/CubeRootTests.java
test/java/lang/Math/HypotTests.java
test/java/lang/Math/IeeeRecommendedTests.java
test/java/lang/Math/Log1pTests.java
Note that there are a few other numerics tests under java.lang which use Random with a hard-coded seed of zero and these do not need to be addressed by this issue.
- backported by
-
JDK-8084828 Print and allow setting by Java property seeds used to initialize Random instances in java.lang numerics tests
-
- Resolved
-
-
JDK-8347943 Print and allow setting by Java property seeds used to initialize Random instances in java.lang numerics tests
-
- Resolved
-
- relates to
-
JDK-8079107 Update TestKeyPairGenerator.java to use random number generator library
-
- Resolved
-
-
JDK-8079419 Update to RegEx test to use random number library
-
- Resolved
-
-
JDK-8079782 RandomFactory should be in the jdk.testlibrary package
-
- Closed
-
-
JDK-8074460 Always print seeds used in [Splittable]Random instances in java.math tests
-
- Closed
-
-
JDK-8078586 java/lang/Double/ParseHexFloatingPoint.java fails intermittently
-
- Closed
-
-
JDK-8080658 Update sun/nio/cs/FindDecoderBugs.java to use random number generator library
-
- Closed
-