Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
anamexis
· 3y ago · 0 comments
That's not a meaningful definition of a hash function, then.
def hash(val): return 0
Comments
[–]
jagged-chisel
3y 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/
[–]
pcthrowaway
3y ago
The best thing about that one is that it seeds the panel with a random number every time you refresh
[–]
throwmeaway1212
3y ago
That has a pretty uniform distribution..