mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +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
|
|
@ -1174,7 +1174,7 @@ hashtable_key_from_2_strings(PyObject *str1, PyObject *str2, const char sep)
|
|||
static Py_uhash_t
|
||||
hashtable_hash_str(const void *key)
|
||||
{
|
||||
return _Py_HashBytes(key, strlen((const char *)key));
|
||||
return Py_HashBuffer(key, strlen((const char *)key));
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue