Hi,

Perhaps the whole function should be rewritten to simply fallback to that
syscall rather than directly fallback to /dev/random?

Or should I replace the define (-1) by that syscall?

Kr,

Thomas


Op vr 17 feb. 2023 20:32 schreef Steffen Nurpmeso <[email protected]>:

> Ach, if he would have kept that "cat STUFF > /dev/u?random".
> Is there really a technical reason to require a special program.
> That is so un-UNIXish.
>
> There was a syscall even earlier, but, you know.
>
>   #include <sys/syscall.h>
>   int main(void){
>           char buf[256];
>           syscall(SYS_getrandom, buf, sizeof buf, 0);
>           return 0;
>   }
>
> --steffen
> |
> |Der Kragenbaer,                The moon bear,
> |der holt sich munter           he cheerfully and one by one
> |einen nach dem anderen runter  wa.ks himself off
> |(By Robert Gernhardt)
>
>
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to