A good example of defence against this is go maps randomize iteration order just so that people don't rely on it being consistent.