Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 sharing their wisdom with the Monastery: (5)
As of 2024-04-20 00:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found