Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Truly randomized keys() in perl 5.17 - a challenge for testing?

by kcott (Archbishop)
on Sep 30, 2013 at 10:54 UTC ( [id://1056328]=note: print w/replies, xml ) Need Help??


in reply to Truly randomized keys() in perl 5.17 - a challenge for testing?

G'day saintmike,

What you're describing for 5.17 development versions, is a documented feature in the current (at time of writing) 5.18 production versions. See "perl5180delta: Hash overhaul".

You can emulate earlier behaviour with the environment variables PERL_HASH_SEED and PERL_PERTURB_KEYS. You might also look at PERL_HASH_SEED_DEBUG, which may be useful for your testing. [Note: I haven't looked at your test suite.]

Be aware of the security implications of modifying the hashing algorithm: "perlsec: Algorithmic Complexity Attacks".

See also: keys and Hash::Util.

-- Ken

  • Comment on Re: Truly randomized keys() in perl 5.17 - a challenge for testing?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1056328]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-19 03:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found