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

Re^2: Truly randomized keys() in perl 5.17 - a challenge for testing?

by saintmike (Vicar)
on Oct 02, 2013 at 14:49 UTC ( [id://1056617]=note: print w/replies, xml ) Need Help??


in reply to Re: Truly randomized keys() in perl 5.17 - a challenge for testing?
in thread Truly randomized keys() in perl 5.17 - a challenge for testing?

Apparently, that's not how it works, otherwise

https://rt.cpan.org/Public/Bug/Display.html?id=81570

would not be failing. What the code does is run keys() once to determine the order and one more time to verify the application's result according to the first run:

https://github.com/mschilli/php-httpbuildquery-perl/blob/master/t/001Basic.t

There's no insertions in between, and yet it started failing with perl-5.17+ on some systems.

  • Comment on Re^2: Truly randomized keys() in perl 5.17 - a challenge for testing?

Replies are listed 'Best First'.
Re^3: Truly randomized keys() in perl 5.17 - a challenge for testing?
by ikegami (Patriarch) on Oct 05, 2013 at 00:58 UTC
    You are mistaken. That file never calls keys twice on the same hash. It call keys on two different hashes (containing the same data). That code has been buggy since 5.8.1. The bug is just more likely to occur now.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2026-02-14 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.