From: Siu Kwan Lam <1929845+sklam@users.noreply.github.com>
Origin: https://github.com/numba/numba/pull/8545
Date: Wed, 9 Nov 2022 11:40:51 -0600
Subject: Fix hashing support in py<3.11

---
 numba/cpython/hashing.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/numba/cpython/hashing.py b/numba/cpython/hashing.py
index ec71c7c..9cd84f1 100644
--- a/numba/cpython/hashing.py
+++ b/numba/cpython/hashing.py
@@ -39,7 +39,9 @@ _PyHASH_MULTIPLIER = 0xf4243  # 1000003UL
 _PyHASH_IMAG = _PyHASH_MULTIPLIER
 _PyLong_SHIFT = sys.int_info.bits_per_digit
 _Py_HASH_CUTOFF = sys.hash_info.cutoff
-_Py_hashfunc_name = "siphash24"
+_Py_hashfunc_name = ("siphash24"
+                     if utils.PYVERSION >= (3, 11)
+                     else sys.hash_info.algorithm)
 
 
 # hash(obj) is implemented by calling obj.__hash__()
