Things like CRCs, Checksums are loosely considered hash functions: https://en.wikipedia.org/wiki/List_of_hash_functions
MD5SUM is a classic example of a hash function with a low (but still reasonable) chance of a collision
> For a function to be useful as a hash function, it must exhibit the property of uniform distribution
It's also listed as the first property on the Wikipedia page:
> A hash function is any function that can be used to map data of arbitrary size to fixed-size values
And the first sentence in the section you link says
> A good hash function should map the expected inputs as evenly as possible over its output range.
It doesn’t have to be “good” to be a hash function.
def hash(val):
return 0Tangential edit: https://xkcd.com/221/