Module hash

Source

Structs§

HashSecret

Constants§

ALGO
BITS
Numeric hashes are based on reduction modulo the prime 2**_BITS - 1
HASH_BITS
IMAG
INF
MODULUS
MULTIPLIER
Prime multiplier used in string and various other hashes.
NAN
SEED_BITS
SENTINEL
A PyHash value used to represent a missing hash value, e.g. means “not yet computed” for str’s hash cache

Functions§

fix_sentinel
hash_bigint
hash_float
hash_object_id
hash_object_id_raw
hash_pointer
keyed_hash
lcg_urandom
mod_int

Type Aliases§

PyHash
PyUHash