Predictable hash function03 Sep 2022 by Friedrich Ewald · 1 min read
hash method in python produces different results for the same object on each different Python run. This is meant as a security feature to prevent predictable hash values. For testing, this can be disabled by setting the environment variable
0. The hash value for a given key will then always be the same.