develooper Front page | perl.perl5.porters | Postings from December 2013

[perl #118237] coreamp.t can fail for rand

Thread Next
From:
Father Chrysostomos via RT
Date:
December 15, 2013 14:33
Subject:
[perl #118237] coreamp.t can fail for rand
Message ID:
rt-4.0.18-28290-1387118030-1619.118237-15-0@perl.org
Dabrien 'Dabe' Murphy wrote:
> How 'bout:
> 
>      my $r = &CORE::rand;
>      ok eval {
>          use warnings FATAL => qw{numeric uninitialized};
>          $r >= 0 && $r < 1;
>      }, '&rand returns a valid number';
> 
> ?

That looks good.  Could you turn that into a patch?


---
via perlbug:  queue: perl5 status: resolved
https://rt.perl.org/Ticket/Display.html?id=118237

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About