http://qs1969.pair.com?node_id=11129757


in reply to Is it possible to "fix a seed" for hash?

See PERL_HASH_SEED and other related variables in perlrun.

Scripts whose output depends on hashes are tested wrongly, because such scripts are buggy. If the order is important, sort the values, if it's not, use bag from Test::Deep in the tests.

Update: Similarly, for Test2 based testing, see Bag Builder in Test2::Tools::Compare.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]