File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,19 @@ See also the :c:member:`PyTypeObject.tp_hash` member and :ref:`numeric-hash`.
2424
2525 The algorithm name is exposed by :data: `sys.hash_info.algorithm `.
2626
27+ .. versionadded :: 3.4
28+
2729.. c :macro :: Py_HASH_FNV
28- Py_HASH_SIPHASH13
2930 Py_HASH_SIPHASH24
31+ Py_HASH_SIPHASH13
3032
3133 Numerical values to compare to :c:macro: `Py_HASH_ALGORITHM ` to determine
3234 which algorithm is used for hashing. The hash algorithm can be configured
3335 via the configure :option: `--with-hash-algorithm ` option.
3436
37+ .. versionadded :: 3.11
38+ Add :c:macro: `!Py_HASH_SIPHASH13 `.
39+
3540.. c :macro :: Py_HASH_CUTOFF
3641
3742 Buffers of length in range ``[1, Py_HASH_CUTOFF) `` are hashed using DJBX33A
@@ -44,6 +49,8 @@ See also the :c:member:`PyTypeObject.tp_hash` member and :ref:`numeric-hash`.
4449 it is easier to create colliding strings. A cutoff of 7 on 64-bit platforms
4550 and 5 on 32-bit platforms should provide a decent safety margin.
4651
52+ .. versionadded :: 3.4
53+
4754.. c :macro :: PyHASH_MODULUS
4855
4956 The `Mersenne prime <https://en.wikipedia.org/wiki/Mersenne_prime >`_ ``P = 2**n -1 ``,
You can’t perform that action at this time.
0 commit comments