laziness, impatience, and hubris | |
PerlMonks |
Re^8: Late PM, 12/24/2014 & all year longby syphilis (Archbishop) |
on Dec 30, 2014 at 12:16 UTC ( [id://1111709]=note: print w/replies, xml ) | Need Help?? |
Ie different between Windows & *nix. And that is the cause of the failures for the obfu Yes, I think that's the cause of most of the failures - but not the one that Athanasius experienced with Strawberry Perl. My Strawberry Perl 5.20.0 produces the same as Athanasius got: But when I switch to 5.18.2 it all works as intended: And it also works as expected for me all the way back to 5.8.8 (which is as far back as I go). From 5.20 on, that problem goes away because of the built-in rand/srand rather inheriting them from the platform C compiler implementation. Agreed, and it was worth doing for that very reason. I just think they should have mentioned, in the srand documentation, that srand(42) would produce different results (on Windows) for 5.20.0 as compared to earlier perl versions - but the srand documentation (as it stands) suggests to me that no such change is to be expected. Cheers, Rob
In Section
Obfuscated Code
|
|