diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/getentropy.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/getentropy.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sysdeps/unix/sysv/linux/getentropy.c b/sysdeps/unix/sysv/linux/getentropy.c index 5d0b8d10c1..2f3a4e4692 100644 --- a/sysdeps/unix/sysv/linux/getentropy.c +++ b/sysdeps/unix/sysv/linux/getentropy.c @@ -21,7 +21,6 @@ #include <errno.h> #include <unistd.h> -#ifdef __NR_getrandom /* Write LENGTH bytes of randomness starting at BUFFER. Return 0 on success and -1 on failure. */ int @@ -63,11 +62,3 @@ getentropy (void *buffer, size_t length) } return 0; } -#else -int -getentropy (void *buffer, size_t length) -{ - __set_errno (ENOSYS); - return -1; -} -#endif |