From ff2d528a0a6943bd4247f3c122c145a5b19f0387 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 4 Jul 2018 18:49:03 -0500 Subject: Add xgetrandom() with probe for new system call (else open/read /dev/{,u}random) --- scripts/genconfig.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts') diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh index e8df5965..533df600 100755 --- a/scripts/genconfig.sh +++ b/scripts/genconfig.sh @@ -105,6 +105,11 @@ EOF struct rlimit *old_limit); int main(int argc, char *argv[]) { prlimit(0, 0, 0, 0); } EOF + + probesymbol TOYBOX_GETRANDOM << EOF + #include + int main(void) { char buf[100]; getrandom(buf, 100, 0); } +EOF } genconfig() -- cgit v1.2.3