line |
true |
false |
branch |
23
|
3 |
11 |
defined $params{'nonblocking'} ? : |
29
|
14 |
28 |
unless defined $name |
30
|
14 |
0 |
if $isblocking and $params{'nonblocking'} |
35
|
14 |
0 |
defined $self->{'SourceSub'} ? : |
40
|
5 |
13 |
unless defined $nvalues and int $nvalues > 0 |
46
|
0 |
14 |
unless -r '/dev/urandom' |
51
|
0 |
14 |
unless -r '/dev/random' |
52
|
0 |
14 |
$^O eq 'freebsd' ? : |
58
|
1 |
13 |
unless defined $nbytes and $nbytes > 0 |
64
|
0 |
13 |
unless defined $thisread and $thisread > 0 |
69
|
0 |
13 |
unless $nbytes == length $s |
75
|
14 |
0 |
unless $^O eq 'MSWin32' |
76
|
0 |
0 |
unless eval {
do {
require Win32;
require Win32::API;
require Win32::API::Type;
1
}
} |
84
|
0 |
0 |
if $major < 5 |
86
|
0 |
0 |
if ($major == 5 and $minor == 0) { } |
90
|
0 |
0 |
unless defined $crypt_acquire_context_a |
94
|
0 |
0 |
unless $result |
99
|
0 |
0 |
unless defined $crypt_gen_random |
105
|
0 |
0 |
unless $result |
115
|
0 |
0 |
unless defined $rtlgenrand |
121
|
0 |
0 |
unless $result |
160
|
123 |
32171 |
unless ($self->[1]--) |
280
|
1 |
2 |
defined $ENV{'BRST_EMBEDDED_CSPRNG'} ? : |
|
8 |
3 |
defined $Math::Random::ISAAC::Embedded::EMBEDDED_CSPRNG ? : |
285
|
0 |
3 |
eval {
do {
require Math::Random::ISAAC::PP;
1
}
} ? : |
|
0 |
3 |
eval {
do {
require Math::Random::ISAAC::XS;
1
}
} ? : |
|
8 |
3 |
$EMBEDDED_CSPRNG ? : |
310
|
11 |
3 |
if exists $args{'bits'} |
311
|
2 |
11 |
if $bits < 64 or $bits > 8192 or not _ispowerof2($bits) |
316
|
0 |
11 |
unless my $source = 'Crypt::Random::Seed::Embedded'->new(%args) |
329
|
2542 |
1 |
defined $bytes ? : |
335
|
2522 |
21 |
if ($bytes > 0) |
336
|
13 |
2509 |
if $bytes >= 2 |
337
|
2515 |
7 |
if $bytes % 2 |
344
|
227 |
1 |
defined $bag ? : |
345
|
226 |
2 |
defined $bytes ? : |
347
|
1 |
227 |
unless $range |
356
|
1 |
1 |
unless 'ARRAY' eq ref $aref |
357
|
0 |
1 |
unless @$aref |
367
|
20677 |
1 |
defined $_ ? : |
368
|
1 |
10338 |
if $range > 4294967296 |