Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 87288:adb471b9cba1
ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'.
Python now uses SipHash24 on all major platforms.
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Wed, 20 Nov 2013 11:46:18 +0100 |
| parents | 58ffd70d02b6 |
| children | 6e2089dbc5ad |
line wrap: on
line diff
--- a/Python/pythonrun.c Wed Nov 20 01:18:26 2013 +0100 +++ b/Python/pythonrun.c Wed Nov 20 11:46:18 2013 +0100 @@ -104,6 +104,7 @@ 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 @@ #ifdef COUNT_ALLOCS dump_counts(stdout); #endif + /* dump hash stats */ + _PyHash_Fini(); PRINT_TOTAL_REFS();
