Hacker News new | ask | show | jobs
by MattJ100 2606 days ago
From Wikipedia: "A hash function is any function that can be used to map data of arbitrary size onto data of a fixed size."

As for hash functions having the desired property of different inputs leading to vastly different outputs, that only describes one subset. There are many hash algorithms that aim to achieve precisely the opposite, such as simhash.