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

Reviewed-by: rriggs, bpb
This commit is contained in:
Jim Laskey 2021-08-17 15:53:41 +00:00
parent 2ed7b709a1
commit cf64c3e7e2
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) );
});