diff options
author | Thorsten Glaser <tg@debian.org> | 2025-04-07 00:23:45 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2025-04-07 00:24:40 +0200 |
commit | 8a6bb3fb10bef1a31088e845f6b4b2ae44959ef3 (patch) | |
tree | 20976e9dde9b449d8d0acca305f00b43659c3936 /libc/sysdeps/linux/common/getrandom.c | |
parent | f82757461a7fdec3233766494d7003bc89f71241 (diff) |
add getentropy(), fix return value of getrandom()
Signed-off-by: Thorsten Glaser <tg@debian.org>
Diffstat (limited to 'libc/sysdeps/linux/common/getrandom.c')
-rw-r--r-- | libc/sysdeps/linux/common/getrandom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/getrandom.c b/libc/sysdeps/linux/common/getrandom.c index bb9841463..1db1663b9 100644 --- a/libc/sysdeps/linux/common/getrandom.c +++ b/libc/sysdeps/linux/common/getrandom.c @@ -8,6 +8,7 @@ #include <sys/syscall.h> #include <sys/random.h> + #ifdef __NR_getrandom -_syscall3(int, getrandom, void *, buf, size_t, buflen, unsigned int, flags) +_syscall3(ssize_t, getrandom, void *, buf, size_t, buflen, unsigned int, flags) #endif |