From d2da0c5ceb3f7a3941ca5627672a194354dfb3f9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?An=C5=BEe=20=C5=BDitnik?= <anze.zitnik@xlab.si>
Date: Mon, 11 Mar 2019 09:38:47 +0100
Subject: [PATCH] mapping urandom to random at runtime (run-cscan.sh)

---
 MANIFEST     | 2 +-
 run-cscan.sh | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/MANIFEST b/MANIFEST
index f6fc1b6..c5a6540 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,3 +1,3 @@
-VERSION=v1.0.4
+VERSION=v1.0.5
 SERVICE=vat-genscan
 
diff --git a/run-cscan.sh b/run-cscan.sh
index 84b713c..8c4d6c0 100644
--- a/run-cscan.sh
+++ b/run-cscan.sh
@@ -13,6 +13,10 @@ if [ $? -ne 0 ]; then
 	exit 2
 fi
 
+#mounting random to urandom to prevent blocking because lack of entropy (ZAP certificate creation)
+rm /dev/random
+ln -s /dev/urandom /dev/random
+
 cd /root/cscan
 rm output/*
 echo "${TARGET}" > websites.txt
-- 
GitLab