From 3af44d2e6a07b0be06fc2f7674d81055d1d1606d Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 29 Mar 2020 07:31:45 -0400 Subject: [PATCH] can now depend on libc having a getrandom wrapper --- random.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/random.c b/random.c index 0b4cbdc..8883531 100644 --- a/random.c +++ b/random.c @@ -5,17 +5,7 @@ #include "random.h" #include "util.h" -#if __has_include() -// glibc 2.25 and later #include -#else -#include -#include - -static ssize_t getrandom(void *buf, size_t buflen, unsigned int flags) { - return syscall(SYS_getrandom, buf, buflen, flags); -} -#endif static void get_random_seed(void *buf, size_t size) { while (size) {