Randomness when iterating over a hash is apparently a feature, not a bug, in Perl. http://perldoc.perl.org/perlsec.html#Algorithmic-Complexity-Attacks