Hacker News new | ask | show | jobs
by CodesInChaos 3397 days ago
> The default hash table has better security against malicious input by using a slower hashing algorithm.

I think an adaptive hash that switches from fast to secure when collisions are detected would make a better default choice (at the cost of some implementation complexity).

Or possibly even an implementation with log(n) worst case complexity.