3 ms·
> 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 s
by CodesInChaos 10y 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.