aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/partialator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/partialator.c b/src/partialator.c
index a3fc712e..59d78f11 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -84,7 +84,7 @@ static int csplit_hash(const char *id)
int h = 0;
for ( i=0; i<len; i++ ) {
- h = (h*i +id[i]) % CSPLIT_HASH_MAX;
+ h = (h*31 + id[i]) % CSPLIT_HASH_MAX;
}
assert(h < CSPLIT_HASH_MAX);