summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2022-07-23 20:21:38 +0000
committerLaurent Bercot <ska@appnovation.com>2022-07-23 20:21:38 +0000
commit2abc3b2c555d3dd6f9707b4e866d7984ad9048d6 (patch)
tree22b8b04ba811c2e62c4dc9eff9c7c8786368d55d
parent69fb8c62a31e767be1464a7ccfe2a5bac331c4cc (diff)
downloadskalibs-2abc3b2c555d3dd6f9707b4e866d7984ad9048d6.tar.xz
Don't use arc4random() for early random on Linux
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--src/librandom/random_buf_early.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librandom/random_buf_early.c b/src/librandom/random_buf_early.c
index ce2733b..d14cd24 100644
--- a/src/librandom/random_buf_early.c
+++ b/src/librandom/random_buf_early.c
@@ -2,7 +2,7 @@
#include <skalibs/sysdeps.h>
-#if defined(SKALIBS_HASARC4RANDOM)
+#if defined(SKALIBS_HASARC4RANDOM) && !defined(__linux__)
#include <skalibs/nonposix.h>
#include <stdlib.h>