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

What you do is have a "family" of hash functions. The random seed value chooses a new hash function. The same properties apply to each individual map's hash function, but each map has a different hash function

Secondary, go map iteration starts from a random position in the hashmap. The order on subsequent iterations is the same, but rotated as a result of the random start index



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

Search: