Mercurial > cpython-lru_cache-weakref
diff Objects/tupleobject.c @ 74416:40e1be1e0707
Consolidate the occurrances of the prime used as the multiplier when hashing.
| author | Gregory P. Smith <greg@krypto.org> |
|---|---|
| date | Sat, 14 Jan 2012 15:45:13 -0800 |
| parents | 106f9e1ad7ab 050c07b31192 |
| children | 5fe7d19ec49a |
line wrap: on
line diff
--- a/Objects/tupleobject.c Sat Jan 14 15:09:07 2012 -0800 +++ b/Objects/tupleobject.c Sat Jan 14 15:45:13 2012 -0800 @@ -316,7 +316,7 @@ register Py_hash_t y; register Py_ssize_t len = Py_SIZE(v); register PyObject **p; - Py_uhash_t mult = 1000003; + Py_uhash_t mult = _PyHASH_MULTIPLIER; x = 0x345678; p = v->ob_item; while (--len >= 0) {
