mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +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
|
|
@ -2742,7 +2742,7 @@ memory_hash(PyMemoryViewObject *self)
|
|||
}
|
||||
|
||||
/* Can't fail */
|
||||
self->hash = _Py_HashBytes((unsigned char *)mem, view->len);
|
||||
self->hash = _Py_HashBytes(mem, view->len);
|
||||
|
||||
if (mem != view->buf)
|
||||
PyMem_Free(mem);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue