Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: random behaviour of perl hashes

by liz (Monsignor)
on Aug 28, 2006 at 20:57 UTC ( #570047=note: print w/ replies, xml ) Need Help??


in reply to Re^3: random behaviour of perl hashes
in thread random behaviour of perl hashes

According to "perlrun":

The default behaviour is to randomise unless the PERL_HASH_SEED is set. If Perl has been compiled with "-DUSE_HASH_SEED_EXPLICIT", the default behaviour is not to randomise unless the PERL_HASH_SEED is set.

perhaps ActiveState Perl is compiled with -DUSE_HASH_SEED_EXPLICIT ?

perl -V
might tell you whether that is the case.

Liz


Comment on Re^4: random behaviour of perl hashes
Download Code
Re^5: random behaviour of perl hashes
by swampyankee (Parson) on Aug 28, 2006 at 21:13 UTC

    perl -v returns (among many other data):

    -GF -W3 -MD -Zi
    -DNDEBUG -O1 -DWIN32
    -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT
    -DNO_HASH_SEED
    -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT
    -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX

    It would seem not, unless -DNO_HASH_SEED has a similar effect.

    emc

    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Albert Einstein

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2015-07-03 00:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (47 votes), past polls