mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-122854: Add Py_HashBuffer() function (#122855)
This commit is contained in:
parent
3d60dfbe17
commit
d8e69b2c1b
17 changed files with 80 additions and 25 deletions
|
@ -3842,7 +3842,7 @@ datetime_date_replace_impl(PyDateTime_Date *self, int year, int month,
|
|||
static Py_hash_t
|
||||
generic_hash(unsigned char *data, int len)
|
||||
{
|
||||
return _Py_HashBytes(data, len);
|
||||
return Py_HashBuffer(data, len);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue