Browse Source

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)
tags/json-c-0.17-20230812
Even Rouault 3 years ago
parent
commit
57ea393004
No known key found for this signature in database GPG Key ID: 33EBBFC47B3DD87D
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      random_seed.c

+ 1
- 0
random_seed.c View File

@@ -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


Loading…
Cancel
Save