Merge pull request #31 from jhutz/rand-unix-ignore-write

hcrypto/rand-unix.c: Ignore write(2) result harder
This commit is contained in:
Love Hörnquist Åstrand
2013-06-18 21:23:56 -07:00

View File

@@ -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);
}