commit dec5f73f577a5e320b6044b1488d64816546d3bf
parent bee7ceb0fb3d553a178e66886298a8a3503e4c33
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date: Wed, 19 Mar 2014 10:27:06 +0100
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.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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