random_seed.c: add a Coverity Scan suppression

Coverity Scan warns about the use of open() after stat() being a
potential TOCTOU (Time of check time of use) issue. But here there is no
such issue.
This commit is contained in:
Even Rouault
2024-01-07 20:55:35 +01:00
parent 76f819e51d
commit f6c8eba84e

View File

@@ -229,6 +229,7 @@ static int get_dev_random_seed(int *seed)
if ((buf.st_mode & S_IFCHR) == 0)
return -1;
/* coverity[toctou] */
int fd = open(dev_random_file, O_RDONLY);
if (fd < 0)
{