Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I think you need a debugging perl for the environment var to work. [...] you can get the same effect from Hash::Util::hash_seed()

Both environment variables shown in the OP seem to be working:

$ PERL_HASH_SEED_DEBUG=1 perl -MHash::Util=hash_seed -le'print hash_se +ed' HASH_SEED = 165032588 165032588 $ PERL_HASH_SEED_DEBUG=1 perl -MHash::Util=hash_seed -le'print hash_se +ed' HASH_SEED = 725441538 725441538

tye's getKeyCollisions shows always the same output here:

$ PERL_HASH_SEED_DEBUG=1 perl gkc.pl | md5sum HASH_SEED = 501557310 e4d6401f730eede592733482fac0ec61 - $ PERL_HASH_SEED_DEBUG=1 perl gkc.pl | md5sum HASH_SEED = 1324598606 e4d6401f730eede592733482fac0ec61 -

I don't know if it's supposed to do so or not. I'm beginning to take a fancy to this :) since it seems to be impossible to obtain some different output of anything between runs of perl (well, anything except hash seeds!).

--
David Serrano


In reply to Re^2: Hashes aren't being differently randomized by Hue-Bond
in thread Hashes aren't being differently randomized by Hue-Bond

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2023-02-05 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (31 votes). Check out past polls.

    Notices?