From a6832791378e37c482ea7062a84da07af5e68df4 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 23 Oct 2018 12:57:50 +0200 Subject: [PATCH] coverity: don't warn on fall back random --- src/util-random.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util-random.c b/src/util-random.c index eef70e2c3e..1bade5428b 100644 --- a/src/util-random.c +++ b/src/util-random.c @@ -36,6 +36,7 @@ static long int RandomGetClock(void) struct timespec ts; clock_gettime(CLOCK_REALTIME, &ts); + // coverity[dont_call : FALSE] srandom(ts.tv_nsec ^ ts.tv_sec); long int value = random(); return value; @@ -49,6 +50,7 @@ static long int RandomGetPosix(void) memset(&tv, 0, sizeof(tv)); gettimeofday(&tv, NULL); + // coverity[dont_call : FALSE] srandom(tv.tv_usec ^ tv.tv_sec); long int value = random(); return value; -- 2.47.2