develooper Front page | perl.perl5.porters | Postings from September 2003

Re: How to detect hash randomization?

Thread Previous | Thread Next
Elizabeth Mattijsen
September 8, 2003 04:35
Re: How to detect hash randomization?
Message ID:
At 07:25 -0400 9/8/03, Dan Sugalski wrote:
>On Mon, 8 Sep 2003, Rafael Garcia-Suarez wrote:
>>  Elizabeth Mattijsen wrote:
>>  > If I build 21021 with:
>>  >
>>  >    -Accflags=-DNO_HASH_SEED
>>  >
>>  > I correctly get a Perl 5.8.1 with the same has keys order as 5.8.0,
>>  > and which does _not_ listen to the environment variable
>>  > PERL_HASH_SEED, but perl -V doesn't say that it has been built with
>>  > -DNO_HASH_SEED.  Is this intentional, an oversight or a side-effect
>>  > of having to use -Accflags?
>>  You can always do 'perl -V:ccflags'. That should be there.
>Why not just fix up and the build a bit to add a new key to the
>configure hash? $Config{has_hash_seed} or something like that, which'll
>mean you don't have to parse the (potentially platform-dependent) C flags.

Hmmm... there is also a run-time component to this check, namely 
whether or not PERL_HASH_SEED is set or not.  So that would imply 
some more magic in the tied %Config hash...  ;-(


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About