mirror of
https://github.com/python/cpython.git
synced 2025-07-08 20:05:28 +00:00
ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'.
Python now uses SipHash24 on all major platforms.
This commit is contained in:
parent
fe32aec25a
commit
985ecdcfc2
27 changed files with 1029 additions and 242 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue