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

Re: How to detect hash randomization?

Thread Previous | Thread Next
Dan Sugalski
September 8, 2003 04:28
Re: How to detect hash randomization?
Message ID:
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.


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