Y
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
jagged-chisel
1117 days ago
Yes, this is a hash function. Whether it’s “useful” or “good” is the purview of the architect.
Tangential edit:
https://xkcd.com/221/
link
pcthrowaway
1116 days ago
The best thing about that one is that it seeds the panel with a random number every time you refresh
link
throwmeaway1212
1117 days ago
That has a pretty uniform distribution..
link
Tangential edit: https://xkcd.com/221/