Bugfix: Small change to hash algorithm hinted by James Ruan on mailing list to

make hash distribution a little bit better.
This commit is contained in:
Peter Schlaile
2010-07-24 08:47:14 +00:00
parent 0246caf513
commit 1e816635b0

View File

@@ -68,7 +68,7 @@ static unsigned int HashHash(void *key_)
rval ^= *(unsigned int*) &key->cfra; rval ^= *(unsigned int*) &key->cfra;
rval += key->type; rval += key->type;
rval ^= (unsigned int) key->seq; rval ^= ((unsigned int) key->seq) << 6;
return rval; return rval;
} }