/* -*-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
*
/*----- 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.)
int rabin_iters(unsigned len)
{
- static struct {
+ static const struct {
unsigned b;
int i;
} *p, *q, tab[] = {