Better tuple hash function.
This commit is contained in:
parent
cc15b42e59
commit
0969ad213d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue