summaryrefslogtreecommitdiff
path: root/test/math/linearCongruence.cpp
diff options
context:
space:
mode:
authorGloria Mundi <gloria@gloria-mundi.eu>2025-11-20 17:49:40 +0100
committerGloria Mundi <gloria@gloria-mundi.eu>2025-11-20 17:49:40 +0100
commitfcb02c67748678e317cac58f7e43c3ed83860ad9 (patch)
treeb4c3f49874a6352d2bcc31f001c7802b18418b1d /test/math/linearCongruence.cpp
parent4c4aea6abd680b62132ead1c9cc943e3e489271d (diff)
fix minor errors in tests
Diffstat (limited to 'test/math/linearCongruence.cpp')
-rw-r--r--test/math/linearCongruence.cpp4
1 files changed, 2 insertions, 2 deletions
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<ll>(0, 1'000);
+ ll m = Random::integer<ll>(1, 1'000);
ll a = Random::integer<ll>(0, m);
ll b = Random::integer<ll>(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<ll>(0, 1'0000'000'000);
+ ll m = Random::integer<ll>(1, 1'0000'000'000);
ll a = Random::integer<ll>(0, m);
ll b = Random::integer<ll>(0, m);