Merge pull request #31 from jhutz/rand-unix-ignore-write
hcrypto/rand-unix.c: Ignore write(2) result harder
This commit is contained in:
		| @@ -82,7 +82,8 @@ unix_seed(const void *indata, int size) | |||||||
|     if (fd < 0) |     if (fd < 0) | ||||||
| 	return; | 	return; | ||||||
|  |  | ||||||
|     write(fd, indata, size); |     if (write(fd, indata, size) != size) | ||||||
|  | 	; /* don't care */ | ||||||
|     close(fd); |     close(fd); | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand