summaryrefslogtreecommitdiffstats
path: root/lib/setup.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-10-14 17:17:06 +0200
committerLukas Reschke <lukas@statuscode.ch>2012-10-14 17:18:30 +0200
commit2c427f050e2bc263b5c4c2faabf73e3993f1d29d (patch)
tree3dc42693fe0853e2235194b7e3846b2ae15736c3 /lib/setup.php
parentd6c4b83f13976b19f471ce3a02c5b872c2f79bdc (diff)
downloadnextcloud-server-2c427f050e2bc263b5c4c2faabf73e3993f1d29d.tar.gz
nextcloud-server-2c427f050e2bc263b5c4c2faabf73e3993f1d29d.zip
Show a warning in the installer if no secure RNG is available
Diffstat (limited to 'lib/setup.php')
-rw-r--r--lib/setup.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/setup.php b/lib/setup.php
index 16b9ec68df6..be4101fd7b0 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -5,12 +5,14 @@ $hasMySQL = is_callable('mysql_connect');
$hasPostgreSQL = is_callable('pg_connect');
$hasOracle = is_callable('oci_connect');
$datadir = OC_Config::getValue('datadirectory', OC::$SERVERROOT.'/data');
+
$opts = array(
'hasSQLite' => $hasSQLite,
'hasMySQL' => $hasMySQL,
'hasPostgreSQL' => $hasPostgreSQL,
'hasOracle' => $hasOracle,
'directory' => $datadir,
+ 'secureRNG' => OC_Util::secureRNG_available(),
'errors' => array(),
);