No public description PiperOrigin-RevId: 953342722
diff --git a/domain_tests/arbitrary_domains_test.cc b/domain_tests/arbitrary_domains_test.cc index 828464f..0d78ed5 100644 --- a/domain_tests/arbitrary_domains_test.cc +++ b/domain_tests/arbitrary_domains_test.cc
@@ -673,7 +673,9 @@ bool found_ok = false; bool found_error = false; - for (int i = 0; i < 100 && (!found_ok || !found_error); ++i) { + const int max_iterations = + IterationsToHitAll(/*num_cases=*/2, /*hit_probability=*/1.0 / 17); + for (int i = 0; i < max_iterations && (!found_ok || !found_error); ++i) { absl::Status s = domain.GetRandomValue(prng); if (s.ok()) { found_ok = true;