From cf4b381136961c321eb0e2140a954a74341d5f2c Mon Sep 17 00:00:00 2001 From: mzuenni Date: Fri, 28 Aug 2026 14:05:25 +0200 Subject: also rename in tsts --- test/math/sqrtModCipolla.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/math/sqrtModCipolla.cpp') diff --git a/test/math/sqrtModCipolla.cpp b/test/math/sqrtModCipolla.cpp index c7be9a4..0d7de70 100644 --- a/test/math/sqrtModCipolla.cpp +++ b/test/math/sqrtModCipolla.cpp @@ -10,7 +10,7 @@ void stress_test(ll range) { ll p = Random::prime(range); for (ll j = 0; j < 100; j++) { ll x = Random::integer(0, p); - if (legendre(x, p) < 0) continue; + if (legendreS(x, p) < 0) continue; ll got = sqrtMod(x, p); if (got < 0 || got >= p) cerr << "error: out of range" << FAIL; @@ -30,7 +30,7 @@ void performance_test() { ll x; do { x = Random::integer(0, mod); - } while (legendre(x, mod) >= 0); + } while (legendreS(x, mod) >= 0); t.start(); hash += sqrtMod(x, mod); t.stop(); -- cgit v1.2.3