diff Objects/object.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 e979b26a9172
children 7d96679c5d46
line wrap: on
line diff
--- a/Objects/object.c	Sat Jan 14 15:09:07 2012 -0800
+++ b/Objects/object.c	Sat Jan 14 15:45:13 2012 -0800
@@ -761,7 +761,7 @@
 
     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;