From b913be71c57bf56dedfde95ebd2d456770d15987 Mon Sep 17 00:00:00 2001
From: Owain Jones <owanes@noc.ac.uk>
Date: Fri, 15 Jan 2016 16:00:30 +0000
Subject: [PATCH] added haveged

---
 install.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/install.sh b/install.sh
index 9b50420..f176148 100644
--- a/install.sh
+++ b/install.sh
@@ -100,3 +100,11 @@ firewall-cmd --reload
 
 # Set the system timezone to UTC
 timedatectl set-timezone UTC
+
+# Install haveged to stop crypto stuff from hanging so much
+# when it depletes /dev/random..! (The bcrypt library on PHP
+# has a tendency to do this, which causes the occasional
+# gateway timeout when registering / changing user passwords
+# on the website.
+yum install haveged
+systemctl enable haveged
-- 
GitLab