diff --git a/lib/hcrypto/rand-unix.c b/lib/hcrypto/rand-unix.c index c52155baa..e0299589c 100644 --- a/lib/hcrypto/rand-unix.c +++ b/lib/hcrypto/rand-unix.c @@ -82,7 +82,8 @@ unix_seed(const void *indata, int size) if (fd < 0) return; - write(fd, indata, size); + if (write(fd, indata, size) != size) + ; /* don't care */ close(fd); }