aboutsummaryrefslogtreecommitdiffstats
path: root/src/zptest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zptest.c')
-rw-r--r--src/zptest.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/zptest.c b/src/zptest.c
index 29e50b7..406cedc 100644
--- a/src/zptest.c
+++ b/src/zptest.c
@@ -47,8 +47,7 @@ zptest(z_t witness, z_t n, int t)
continue;
for (i = 1; i < r; i++) {
- zsqr(x, x);
- zmod(x, x, n);
+ zmodsqr(x, x, n);
if (!zcmp(x, libzahl_const_1)) {
if (witness)
zswap(witness, a);