Kaydet (Commit) 0969ad21 authored tarafından Guido van Rossum's avatar Guido van Rossum

Better tuple hash function.

üst cc15b42e
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment