From 8a6bb3fb10bef1a31088e845f6b4b2ae44959ef3 Mon Sep 17 00:00:00 2001 From: Thorsten Glaser Date: Mon, 7 Apr 2025 00:23:45 +0200 Subject: add getentropy(), fix return value of getrandom() Signed-off-by: Thorsten Glaser --- libc/sysdeps/linux/common/getrandom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/common/getrandom.c') 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 #include + #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 -- cgit v1.2.3