Better tuple hash function.

This commit is contained in:
Guido van Rossum 1996-12-16 17:55:46 +00:00
parent cc15b42e59
commit 0969ad213d
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ tuplehash(v)
y = hashobject(*p++);
if (y == -1)
return -1;
x = (x + x + x) ^ y;
x = (1000003*x) ^ y;
}
x ^= v->ob_size;
if (x == -1)