blib/lib/Rand/Urandom.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 10 | 22 | 45.4 |
line | true | false | branch |
---|---|---|---|
17 | 1 | 6 | if $max == 1.8446744073709552e+19 |
25 | 0 | 8 | unless ($Rand::Urandom::Config{'osname'} =~ /linux/) |
29 | 8 | 0 | $Rand::Urandom::Config{'archname'} =~ /x86_64/ ? : |
36 | 8 | 0 | if ($! == 38) |
40 | 0 | 0 | if ($ret != $num) |
46 | 0 | 0 | if ($tries++ > 100) |
59 | 8 | 0 | unless ($buf) |
61 | 0 | 8 | -r '/dev/arandom' ? : |
62 | 0 | 8 | unless open my $fh, '<:raw', $file |
65 | 0 | 8 | if ($got == 0 or $got != $num) |
68 | 0 | 8 | unless close $fh |