commit 2abc3b2c555d3dd6f9707b4e866d7984ad9048d6
parent 69fb8c62a31e767be1464a7ccfe2a5bac331c4cc
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date: Sat, 23 Jul 2022 20:21:38 +0000
Don't use arc4random() for early random on Linux
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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>