Skip to content

Commit 24e5c1a

Browse files
committedAug 20, 2021
8272326: java/util/Random/RandomTestMoments.java had two Gaussian fails
Backport-of: cf64c3e7e226eacf675d984db52872b0a8343a46
1 parent 704e6b9 commit 24e5c1a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
 

‎test/jdk/java/util/Random/RandomTestChiSquared.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,9 @@ static void testOneRng(RandomGenerator rng, int failureTolerance) {
224224
}
225225

226226
public static void main(String[] args) {
227-
RandomGeneratorFactory.all().forEach(factory -> {
227+
RandomGeneratorFactory.all()
228+
.filter(f -> !f.name().equals("SecureRandom"))
229+
.forEach(factory -> {
228230
setRNG(factory.name());
229231

230232
if (factory.name().equals("Random")) {

‎test/jdk/java/util/Random/RandomTestMoments.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ static void testOneRng(RandomGenerator rng) {
194194

195195
public static void main(String[] args) {
196196
RandomGeneratorFactory.all()
197-
.forEach(factory -> {
197+
.filter(f -> !f.name().equals("SecureRandom"))
198+
.forEach(factory -> {
198199
setRNG(factory.name());
199200
testOneRng(factory.create(325) );
200201
});

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Aug 20, 2021

@openjdk-notifier[bot]
Please sign in to comment.