traveler.reproducible_hash#

traveler.reproducible_hash(inputs, *args)[source]#

Hashes a string to a reproducible integer using SHA-256.

Parameters:

inputs (str, int, float, or bytes; or collection of these) – The value(s) to hash.

Returns:

An integer representing the hash of the string.

Return type:

int