From 3df8f321b3b4109eeaf2a52b05a3615cc104b7d2 Mon Sep 17 00:00:00 2001
From: jD91mZM2 <me@krake.one>
Date: Sun, 3 Jun 2018 07:52:35 +0200
Subject: [PATCH] Patch libsodium randbytes

---
 recipes/libsodium/random.patch | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 recipes/libsodium/random.patch

diff --git a/recipes/libsodium/random.patch b/recipes/libsodium/random.patch
new file mode 100644
index 000000000..77e010bc5
--- /dev/null
+++ b/recipes/libsodium/random.patch
@@ -0,0 +1,14 @@
+--- a/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c	2018-06-03 07:26:17.413729023 +0200
++++ b/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c	2018-06-03 07:41:40.119390067 +0200
+@@ -162,10 +162,7 @@
+ /* LCOV_EXCL_START */
+     struct stat        st;
+     static const char *devices[] = {
+-# ifndef USE_BLOCKING_RANDOM
+-        "/dev/urandom",
+-# endif
+-        "/dev/random", NULL
++        "rand:", NULL
+     };
+     const char       **device = devices;
+     int                fd;
-- 
GitLab