Revert artifact

This commit is contained in:
Said Kadrioski 2025-11-25 08:13:00 +01:00
parent 564b7a1b3a
commit 9a30054ff0

View file

@ -636,7 +636,7 @@ test "invNTTReductions bounds" {
fn invertMod(a: anytype, p: @TypeOf(a)) @TypeOf(a) { fn invertMod(a: anytype, p: @TypeOf(a)) @TypeOf(a) {
const r = extendedEuclidean(@TypeOf(a), a, p); const r = extendedEuclidean(@TypeOf(a), a, p);
assert(r.gcd == 1); assert(r.gcd == 1);
return r.bezout_coeff_1; return r.x;
} }
// Reduce mod q for testing. // Reduce mod q for testing.