Minor changes from review
This commit is contained in:
parent
79c83a0f3f
commit
f45d5a7ebf
@ -128,9 +128,11 @@ int rand_main(int argc, char *argv[])
|
|||||||
(void)close(fd);
|
(void)close(fd);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nread != nsamples * sizeof(uint32_t))
|
if (nread != nsamples * sizeof(uint32_t))
|
||||||
{
|
{
|
||||||
fprintf(stderr, "ERROR: Read from /dev/randon only produced %d bytes\n", nread);
|
fprintf(stderr, "ERROR: Read from /dev/randon only produced %d bytes\n",
|
||||||
|
(int)nread);
|
||||||
(void)close(fd);
|
(void)close(fd);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user