-very theoretically, 0 would be OK, too

This commit is contained in:
Christian Grothoff
2023-09-25 21:13:17 +02:00
parent 19e1ed8355
commit e42c783bb8
+1 -1
View File
@@ -359,7 +359,7 @@ gen_good_rnd (void *rnd_buf, size_t rnd_buf_size)
if (1) if (1)
{ {
const int urand_fd = open ("/dev/urandom", O_RDONLY); const int urand_fd = open ("/dev/urandom", O_RDONLY);
if (0 < urand_fd) if (0 <= urand_fd)
{ {
size_t pos = 0; size_t pos = 0;
do do