commit | 985ecdcfc29adfc36ce2339acf03f819ad414869 | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Wed Nov 20 11:46:18 2013 +0100 |
committer | Christian Heimes <christian@cheimes.de> | Wed Nov 20 11:46:18 2013 +0100 |
tree | 06a11f82271e768dbe49469c8736b65b083f671c | |
parent | fe32aec25a8b36498d840bd69485e9bc94195b9c [diff] [blame] |
ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'. Python now uses SipHash24 on all major platforms.
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index efa0192..8217b1e 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c
@@ -897,7 +897,7 @@ { if (a->ob_shash == -1) { /* Can't fail */ - a->ob_shash = _Py_HashBytes((unsigned char *) a->ob_sval, Py_SIZE(a)); + a->ob_shash = _Py_HashBytes(a->ob_sval, Py_SIZE(a)); } return a->ob_shash; }