Branch Coverage

src/rand/sysrng.c
Criterion Covered Total %
branch 10 30 33.3


line true false branch
57 48 6 for (u = 0; u < sizeof tmp; u += sizeof(uint32_t)) {
83 48 0 for (j = 0; j < 10; j ++) {
84 48 0 if (_rdrand32_step(&x) && x != 0 && x != (uint32_t)-1) {
48 0 if (_rdrand32_step(&x) && x != 0 && x != (uint32_t)-1) {
48 0 if (_rdrand32_step(&x) && x != 0 && x != (uint32_t)-1) {
117 0 0 if (f >= 0) {
121 0 0 for (u = 0; u < sizeof tmp;) {
125 0 0 if (len < 0) {
126 0 0 if (errno == EINTR) {
134 0 0 if (u == sizeof tmp) {
154 0 0 if (getentropy(tmp, sizeof tmp) == 0) {
200 0 6 if (!seeder_rdrand(ctx)) {
220 52 0 if (rdrand_supported()) {
221 50 2 if (name != NULL) {
232 0 0 if (name != NULL) {