Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Is it possible to "fix a seed" for hash?

by haukex (Archbishop)
on Mar 22, 2021 at 22:16 UTC ( [id://11130156]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Is it possible to "fix a seed" for hash?
in thread Is it possible to "fix a seed" for hash?

I tried to set PERL_HASH_SEED to 0, but I'm getting different outputs each time.

As choroba said, there are "other related variables" too, e.g. PERL_PERTURB_KEYS.

However, since from your reply it seems like you're continuing down this route, let me state what I said here more directly: I can say with near certainty that you shouldn't be messing with these variables in the first place! Unless you can explain with certainty why you think you need these variables, I am certain we will be able to find a better (more robust, more portable, etc.) solution for you. So please explain your application some more, and the issue you are experiencing, and let's find a better solution than messing with PERL_HASH_SEED.

Update: Rereading the node, that's a lot of certainty ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-19 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found