[Toybox] [PATCH] xgetrandom: use getrandom result if it succeeds

Rob Landley rob at landley.net
Wed Jul 18 09:20:00 PDT 2018


On 07/18/2018 12:15 AM, Patrick Oppenlander wrote:
> Currently xgetrandom always uses the fallback path even if getrandom returns
> success.
> 
> Patrick

Yeah, it's broken in some cross compiling setups too, if your cross compiler has
sys/random.h but the host toolchain doesn't building config2help on the host
pulls in lib/portability.h that tries to #include sys/random.h and breaks.

I need to redo it this weekend, sorry.

Rob



More information about the Toybox mailing list