Branch Coverage

deps/libgit2/src/util/rand.c
Criterion Covered Total %
branch 5 12 41.6


line true false branch
94 87 0 if ((fd = open("/dev/urandom", O_RDONLY)) >= 0) {
98 87 0 if (ret == (ssize_t)sizeof(uint64_t))
104 0 0 if (gettimeofday(&tv, NULL) < 0) {
149 87 0 if (git_mutex_init(&state_lock) < 0 || getseed(&seed) < 0)
0 87 if (git_mutex_init(&state_lock) < 0 || getseed(&seed) < 0)
152 0 87 if (!seed) {