From fcb02c67748678e317cac58f7e43c3ed83860ad9 Mon Sep 17 00:00:00 2001 From: Gloria Mundi Date: Thu, 20 Nov 2025 17:49:40 +0100 Subject: fix minor errors in tests --- test/math/linearCongruence.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/math') diff --git a/test/math/linearCongruence.cpp b/test/math/linearCongruence.cpp index fa01a06..042c842 100644 --- a/test/math/linearCongruence.cpp +++ b/test/math/linearCongruence.cpp @@ -14,7 +14,7 @@ void stress_test() { ll work = 0; ll positive = 0; for (ll tries = 0; tries < 500'000; tries++) { - ll m = Random::integer(0, 1'000); + ll m = Random::integer(1, 1'000); ll a = Random::integer(0, m); ll b = Random::integer(0, m); @@ -33,7 +33,7 @@ void performance_test() { timer t; hash_t hash = 0; for (int operations = 0; operations < N; operations++) { - ll m = Random::integer(0, 1'0000'000'000); + ll m = Random::integer(1, 1'0000'000'000); ll a = Random::integer(0, m); ll b = Random::integer(0, m); -- cgit v1.2.3