What is a good Hash Function?

For doing “normal” hash table lookups on basically any kind of data – this one by Paul Hsieh is the best I’ve ever used.


If you care about cryptographically secure or anything else more advanced, then YMMV. If you just want a kick ass general purpose hash function for a hash table lookup, then this is what you’re looking for.

Leave a Comment