Adhemerval Zanella 184b9e530e stdlib: fix arc4random fallback to /dev/urandom (BZ 31612)
The __getrandom_nocancel used by __arc4random_buf uses
INLINE_SYSCALL_CALL (which returns -1/errno) and the loop checks for
the return value instead of errno to fallback to /dev/urandom.

The malloc code now uses __getrandom_nocancel_nostatus, which uses
INTERNAL_SYSCALL_CALL, so there is no need to use the variant that does
not set errno (BZ#29624).

Checked on x86_64-linux-gnu.

Reviewed-by: Xi Ruoyao <xry111@xry111.site>
2024-07-08 10:05:10 -03:00
..
2024-02-27 10:52:58 -03:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-02-01 11:02:01 +00:00
2024-02-01 11:02:01 +00:00
2024-02-01 11:02:01 +00:00
2021-09-03 22:06:44 +05:30
2021-09-03 22:06:44 +05:30
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00
2024-01-03 12:07:14 +00:00