Coro + rand() + win7 == broke
Darin McBride
darin.mcbride at shaw.ca
Thu Mar 7 18:31:05 CET 2013
On Wednesday March 6 2013 11:06:57 PM Rob Schaber wrote:
> Hi, Marc.
>
> First off, thanks for the modules you've authored. I've been doing event
> loop programming for the first time with them and it's been really great.
>
> I ran into a problem with Coro and random numbers today. Seems to only
> happen on Windows (your favorite platform). To reproduce:
>
> use Coro;
> rand;
> async { print rand(), "\n" }->join for 1 .. 10;
>
> Will print the same 10 numbers every time on my Win7 x64 machine with
> perl 5.14. It works properly on virtualized Ubuntu and Windows XP (x86).
Have you tried installing Math::Random::Secure or some other rand replacement?
More information about the anyevent
mailing list