diff options
author | Gregory P. Smith <greg@krypto.org> | 2012-01-14 23:45:13 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2012-01-14 23:45:13 (GMT) |
commit | f5b62a9b314e71e6bd5014be92ad1d10ff8e0d63 (patch) | |
tree | feb12ee5852eb7674802e9de3c2ef9c32c4f9ee6 /Objects/object.c | |
parent | d66b5051551b1d5199aaf5d30368d22232f49524 (diff) | |
parent | 63e6c3222f563cfb156de6e92199e9e35ad5d832 (diff) | |
download | cpython-f5b62a9b314e71e6bd5014be92ad1d10ff8e0d63.zip cpython-f5b62a9b314e71e6bd5014be92ad1d10ff8e0d63.tar.gz cpython-f5b62a9b314e71e6bd5014be92ad1d10ff8e0d63.tar.bz2 |
Consolidate the occurrances of the prime used as the multiplier when hashing.
Diffstat (limited to 'Objects/object.c')
-rw-r--r-- | Objects/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/object.c b/Objects/object.c index 9060c82..441068d 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -761,7 +761,7 @@ _Py_HashBytes(unsigned char *p, Py_ssize_t len) x = (Py_uhash_t) *p << 7; for (i = 0; i < len; i++) - x = (1000003U * x) ^ (Py_uhash_t) *p++; + x = (_PyHASH_MULTIPLIER * x) ^ (Py_uhash_t) *p++; x ^= (Py_uhash_t) len; if (x == -1) x = -2; |