X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/4e5ba4306db8cb64a87ad37084c0bf64c03563e1..79bc45d029fd0283e76c3774070ec05710351ce9:/rand/rand.c diff --git a/rand/rand.c b/rand/rand.c index c2540f7e..5cca087e 100644 --- a/rand/rand.c +++ b/rand/rand.c @@ -251,9 +251,7 @@ void rand_add(rand_pool *r, const void *p, size_t sz, unsigned goodbits) const octet *c = p; int i, rot; -#if RAND_POOLSZ != 128 -# error Polynomial in rand_add is out of date. Fix it. -#endif + STATIC_ASSERT(RAND_POOLSZ == 128, "Polynomial doesn't match pool size"); RAND_RESOLVE(r);