commit fd9c83cbb9d80a8108cd5112d12f475406b44a20
Author:     Mattias Andrée <[email protected]>
AuthorDate: Fri May 13 19:07:07 2016 +0200
Commit:     Mattias Andrée <[email protected]>
CommitDate: Fri May 13 19:07:07 2016 +0200

    zptest: if n is even, let the witness be 2
    
    Signed-off-by: Mattias Andrée <[email protected]>

diff --git a/src/zptest.c b/src/zptest.c
index 406cedc..1a44069 100644
--- a/src/zptest.c
+++ b/src/zptest.c
@@ -28,7 +28,7 @@ zptest(z_t witness, z_t n, int t)
        }
        if (unlikely(zeven(n))) {
                if (witness)
-                       SET(witness, n);
+                       zsetu(witness, 2);
                return NONPRIME;
        }
 

Reply via email to