Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

More important (in my opinion), adding a random seed to your hash prevents collision attacks, where an attacker tries to ruin your performance by sending many values (e.g. HTTP params) that would hash to the same bucket.


Many (most?) programming language runtimes now do this, especially the web-focused ones. But it's completely orthogonal to insertion-ordered iteration (which is implemented by a list).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: