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

Re: How to detect hash randomization?

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
September 8, 2003 04:28
Subject:
Re: How to detect hash randomization?
Message ID:
Pine.LNX.4.44.0309080724380.22513-100000@redcap.sidhe.org
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 Config.pm 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.

					Dan


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About