Subject: | Shuffle function not a direct replacement for 'shuffle' in List::Util |
Date: | Mon, 3 Sep 2012 10:08:39 -0700 (PDT) |
To: | "bug-Math-Random-MT-Auto [...] rt.cpan.org" <bug-Math-Random-MT-Auto [...] rt.cpan.org> |
From: | Glenn Mabbutt <mabbuttg [...] yahoo.ca> |
Not necessarily a bug, but from my testing it appears that the shuffle function of Math::Random::MT::Auto does not behave 100% exactly like the shuffle function in List::Util, so it is not a complete drop-in replacement.
Example:
@data = shuffle(@data); # works with shuffle from List::Util, but makes the Perl interpreter crash if shuffle is passed to Math::Random:MT::Auto
This is not major, as "shuffle(\@data);" works from Math::Random::MT::Auto very well, but requires code modification if it had been originally written the way above.
Tested with Math::Random::MT::Auto 6.21 with ActiveState Perl 5.14 on Windows 7 SP1 64-bit.