From 57ea393004fd25c4c717a1b8829fa9ff9d6cffdd Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 16 Aug 2022 11:11:55 +0200 Subject: [PATCH] get_time_seed(): silence warning emitted by Coverity Scan static analyzer It warns about the return of time() being truncated to 32 bit, which is not an issue here. (this warning was emitted because of the https://github.com/OSGeo/gdal project embedding a copy of libjson-c and running Coverity Scan analysis) --- random_seed.c | 1 + 1 file changed, 1 insertion(+) diff --git a/random_seed.c b/random_seed.c index 7945824c..5b2155db 100644 --- a/random_seed.c +++ b/random_seed.c @@ -310,6 +310,7 @@ static int get_time_seed(void) { DEBUG_SEED("get_time_seed"); + /* coverity[store_truncates_time_t] */ return (unsigned)time(NULL) * 433494437; } #endif -- 2.39.5