Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 ( #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 (Pope) 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
Node Status?
node history
Node Type: note [id://1056617]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2016-12-02 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (50 votes). Check out past polls.