News for hackers. Stuff that matters.
Re:Hash Functions by anamexis on Saturday June 03, 2023 @06:17PM (#36181051)
That's not a meaningful definition of a hash function, then.

    def hash(val):
        return 0
Re:Hash Functions by jagged-chisel on Saturday June 03, 2023 @06:44PM (#36181225)
Yes, this is a hash function. Whether it’s “useful” or “good” is the purview of the architect.

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

Re:Hash Functions by pcthrowaway on Sunday June 04, 2023 @04:59AM (#36184137)
The best thing about that one is that it seeds the panel with a random number every time you refresh
Re:Hash Functions by throwmeaway1212 on Saturday June 03, 2023 @06:46PM (#36181236)
That has a pretty uniform distribution..