Hacker News new | ask | show | jobs
by anamexis 1117 days ago
That's not a meaningful definition of a hash function, then.

    def hash(val):
        return 0
2 comments

Yes, this is a hash function. Whether it’s “useful” or “good” is the purview of the architect.

Tangential edit: https://xkcd.com/221/

The best thing about that one is that it seeds the panel with a random number every time you refresh
That has a pretty uniform distribution..