From 307503df961e31186065ff6bc8fba2e0cd28e2bd Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 1 Dec 2017 17:31:45 +0100 Subject: [PATCH] Coverage exclusion --- .../randombytes/salsa20/randombytes_salsa20_random.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c b/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c index a4b8b447..79916eab 100644 --- a/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +++ b/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c @@ -453,16 +453,18 @@ randombytes_salsa20_random_close(void) static void randombytes_salsa20_random_xorhwrand(void) { +/* LCOV_EXCL_START */ #ifdef HAVE_RDRAND unsigned int r; if (global.rdrand_available == 0) { - return; /* LCOV_EXCL_LINE */ + return; } (void) _rdrand32_step(&r); * (uint32_t *) (void *) &stream.key[crypto_stream_salsa20_KEYBYTES - 4] ^= (uint32_t) r; #endif +/* LCOV_EXCL_STOP */ } /*