8272326: java/util/Random/RandomTestMoments.java had two Gaussian fails

Backport-of: cf64c3e7e2
This commit is contained in:
Joe Darcy
2021-08-20 16:43:07 +00:00
parent 704e6b93aa
commit 24e5c1a040
2 changed files with 5 additions and 2 deletions

View File

@@ -224,7 +224,9 @@ public class RandomTestChiSquared {
}
public static void main(String[] args) {
RandomGeneratorFactory.all().forEach(factory -> {
RandomGeneratorFactory.all()
.filter(f -> !f.name().equals("SecureRandom"))
.forEach(factory -> {
setRNG(factory.name());
if (factory.name().equals("Random")) {

View File

@@ -194,7 +194,8 @@ public class RandomTestMoments {
public static void main(String[] args) {
RandomGeneratorFactory.all()
.forEach(factory -> {
.filter(f -> !f.name().equals("SecureRandom"))
.forEach(factory -> {
setRNG(factory.name());
testOneRng(factory.create(325) );
});