X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/283b9af095a5b24ae71b49a6d2dcbdcdaae47c40..8404fd750e8d1a635ccb3895e4f0e155e5f5e3cf:/rabin.c diff --git a/rabin.c b/rabin.c index 915dc14..200ab0d 100644 --- a/rabin.c +++ b/rabin.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: rabin.c,v 1.7 2002/01/13 13:42:53 mdw Exp $ + * $Id: rabin.c,v 1.8 2004/04/02 01:03:49 mdw Exp $ * * Miller-Rabin primality test * @@ -30,6 +30,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: rabin.c,v $ + * Revision 1.8 2004/04/02 01:03:49 mdw + * Miscellaneous constification. + * * Revision 1.7 2002/01/13 13:42:53 mdw * More efficient Rabin-Miller test: with random witnesses, skip redundant * Montgomerization. (Being bijective, it can't affect the distribution.) @@ -182,7 +185,7 @@ int rabin_test(rabin *r, mp *g) int rabin_iters(unsigned len) { - static struct { + static const struct { unsigned b; int i; } *p, *q, tab[] = {