If maps always hash items to the exact same values, and you know that a server is storing user data in a map, you can slow down a server with an attack called Hash DoS by sending it specially crafted data with keys that all hash to the same bucket.

[[Go for loop#range-for|Range for]] prevents this attack by randomizing range over a map.