diff options
author | Christian Heimes <christian@cheimes.de> | 2013-11-20 11:46:18 +0100 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-11-20 11:46:18 +0100 |
commit | 1f4288b872047826fa7bc66ab5fe785e61a095b1 (patch) | |
tree | 264dc2c60ccdd280c2c69e1927201472990a8ee2 /Python/pythonrun.c | |
parent | 38385a82df002518c5637c38f50d53b0d5e2dc2e (diff) | |
download | cpython-1f4288b872047826fa7bc66ab5fe785e61a095b1.tar.gz |
ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'.
Python now uses SipHash24 on all major platforms.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index e427be3174..b5d57dfcbf 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -104,6 +104,7 @@ extern int _PyLong_Init(void); extern void PyLong_Fini(void); extern int _PyFaulthandler_Init(void); extern void _PyFaulthandler_Fini(void); +extern void _PyHash_Fini(void); #ifdef WITH_THREAD extern void _PyGILState_Init(PyInterpreterState *, PyThreadState *); @@ -650,6 +651,8 @@ Py_Finalize(void) #ifdef COUNT_ALLOCS dump_counts(stdout); #endif + /* dump hash stats */ + _PyHash_Fini(); PRINT_TOTAL_REFS(); |