From dec5f73f577a5e320b6044b1488d64816546d3bf Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Wed, 19 Mar 2014 10:27:06 +0100 Subject: [PATCH] actually use prime numbers for all hash bucket sizes for some reason lost in history, the prime_deltas were actually wrong, leading to using composite numbers. the right sequence is available at http://oeis.org/A092131. --- src/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.c b/src/util.c index 1ba65e5..c76916b 100644 --- a/src/util.c +++ b/src/util.c @@ -537,8 +537,8 @@ arc4_getbyte( void ) } static const unsigned char prime_deltas[] = { - 0, 0, 1, 3, 1, 5, 3, 3, 1, 9, 7, 5, 3, 9, 25, 3, - 1, 21, 3, 21, 7, 15, 9, 5, 3, 29, 15, 0, 0, 0, 0, 0 + 0, 0, 1, 3, 1, 5, 3, 3, 1, 9, 7, 5, 3, 17, 27, 3, + 1, 29, 3, 21, 7, 17, 15, 9, 43, 35, 15, 0, 0, 0, 0, 0 }; int