commit dec5f73f577a5e320b6044b1488d64816546d3bf
Author: Oswald Buddenhagen <o...@users.sf.net>
Date:   Wed Mar 19 10:27:06 2014 +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.

 src/util.c |    4 ++--
 1 files 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

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to