in reply to Re: Floating point (in)accuracy: more "interesting" than expected
in thread Floating point (in)accuracy: more "interesting" than expected

Good catch! When I added "sort" into the loop over values, the mac/perl-5.8.1 runs came out with the same answer every time.

But now that leaves me wondering about freebsd/perl-5.8.5 on the i386 and amd64 machines I tried: why would they always give the same answer, if they're supposed to share 5.8.1's non-deterministic hashing method... Could they actually be that much more accurate?

  • Comment on Re^2: Floating point (in)accuracy: more "interesting" than expected

Replies are listed 'Best First'.
Re^3: Floating point (in)accuracy: more "interesting" than expected
by hossman (Prior) on Dec 11, 2004 at 21:32 UTC

    Well, there are two possibilities i can think of...

    1. Note that the 5.8.2 perldelta indicates some tweaks were made again. I'm not sure what they were, but maybe they reduced some of the percieved randomness of ordering returned by "values" while keeping the security.
    2. It's possible that your deterministic versions of perl were compiled with "USE_HASH_SEED_EXPLICIT" set, or perhaps you have the "PERL_HASH_SEED" enironment variable set. see INSTALL for more info