From f9e258437f77bb81929b01d85201d8f39cfd3a0f Mon Sep 17 00:00:00 2001
From: Lukas Reschke <lukas@owncloud.com>
Date: Wed, 27 May 2015 18:43:17 +0200
Subject: Add check for availability of /dev/urandom

Backport of https://github.com/owncloud/core/pull/16565 to stable8
---
 core/js/setupchecks.js | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'core/js')

diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js
index d43a356999c..e6b375d0519 100644
--- a/core/js/setupchecks.js
+++ b/core/js/setupchecks.js
@@ -64,6 +64,11 @@
 							t('core', 'cURL is not installed, some functionality might not work. Please install the PHP cURL extension. Future versions will require installed cURL.')
 						);
 					}
+					if(!data.isUrandomAvailable) {
+						messages.push(
+							t('core', '/dev/urandom is not readable by PHP which is highly discouraged for security reasons. Further information can be found in our <a href="{docLink}">documentation</a>.', {docLink: data.securityDocs})
+						);
+					}
 				} else {
 					messages.push(t('core', 'Error occurred while checking server setup'));
 				}
-- 
cgit v1.2.3