[PATCH 2/2] linux: use __getrandom_nocancel in getentropy
Andreas Schwab
schwab@suse.de
Wed Feb 12 12:28:48 GMT 2025
On Feb 08 2025, Cristian Rodríguez wrote:
> diff --git a/sysdeps/unix/sysv/linux/getentropy.c b/sysdeps/unix/sysv/linux/getentropy.c
> index a62c9fb099..2134a32ae4 100644
> --- a/sysdeps/unix/sysv/linux/getentropy.c
> +++ b/sysdeps/unix/sysv/linux/getentropy.c
> @@ -21,7 +21,7 @@
> #include <errno.h>
> #include <unistd.h>
> #include <sysdep.h>
> -
> +#include <not-cancel.h>
> /* Write LENGTH bytes of randomness starting at BUFFER. Return 0 on
> success and -1 on failure. */
> int
Please keep the empty line.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list