diff options
Diffstat (limited to 'src/sysdeps/trygetrandom.c')
-rw-r--r-- | src/sysdeps/trygetrandom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sysdeps/trygetrandom.c b/src/sysdeps/trygetrandom.c index b6cda18..8abe3dd 100644 --- a/src/sysdeps/trygetrandom.c +++ b/src/sysdeps/trygetrandom.c @@ -19,5 +19,6 @@ static int getrandom (void *buf, size_t buflen, unsigned int flags) int main (void) { char buf[4] ; - return getrandom(buf, 4, 0) ; + if (getrandom(buf, 4, 0) < 0) return 1 ; + return 0 ; } |