diff options
author | van Hauser <vh@thc.org> | 2023-08-09 18:29:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-09 18:29:25 +0000 |
commit | fa44d8f79f03c0aab3cfea93c37b70edc367c1bb (patch) | |
tree | f39de203508117dcb50b66baa8fd335a887a9c54 /test/unittests/unit_rand.c | |
parent | 18d9234dfe4b6db32a2da335834908e49300e5cd (diff) | |
parent | 55d696fbae435e0e69adf75cb2df1361186fb999 (diff) | |
download | afl++-fa44d8f79f03c0aab3cfea93c37b70edc367c1bb.tar.gz |
Merge pull request #1831 from AFLplusplus/dev
push to stable
Diffstat (limited to 'test/unittests/unit_rand.c')
-rw-r--r-- | test/unittests/unit_rand.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unittests/unit_rand.c b/test/unittests/unit_rand.c index 1ad02a80..f89b2ab5 100644 --- a/test/unittests/unit_rand.c +++ b/test/unittests/unit_rand.c @@ -67,6 +67,7 @@ static void test_rand_below(void **state) { rand_set_seed(&afl, 1337); afl.fsrv.dev_urandom_fd = open("/dev/urandom", O_RDONLY); + if (afl.fsrv.dev_urandom_fd < 0) { PFATAL("Unable to open /dev/urandom"); } assert(!(rand_below(&afl, 9000) > 9000)); assert_int_equal(rand_below(&afl, 1), 0); |