csprng.c | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 22 | 24 | 91.6 |
line | true | false | branch |
---|---|---|---|
124 | 78 | 5 | if (bytes >= SEED_BYTES) { |
136 | 44 | 5 | for (i = 4*((bytes+3)/4); i < SEED_BYTES; i += 4) |
146 | 72 | 11 | if (!_has_selftest_run) { |
161 | 4 | 1 | if (insecure_seed <= UVCONST(4294967295)) { |
261 | 1010 | 130030 | if (n <= 1) |
267 | 130030 | 12 | if (r >= rmin) |
277 | 130918 | 315 | if (n <= 4294967295UL) |
279 | 101 | 214 | if (n-1 == 4294967295UL) |
285 | 214 | 0 | if (r >= rmin) |
293 | 1 | 3092 | if (nbits == 0) { |
295 | 979 | 2113 | } else if (nbits <= 32) { |
298 | 2113 | 0 | } else if (nbits <= 64) { |