aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-04-10 00:18:26 +0200
committerLukas Reschke <lukas@statuscode.ch>2013-04-10 00:18:29 +0200
commitcdd10ba307d6802e0d27d27b745ac71ff7a10e5b (patch)
treeeb54059c58a064b51ff928293072f6942bac44b0
parent81f5324a76efb312117f76fed471c128c23533b7 (diff)
downloadnextcloud-server-cdd10ba307d6802e0d27d27b745ac71ff7a10e5b.tar.gz
nextcloud-server-cdd10ba307d6802e0d27d27b745ac71ff7a10e5b.zip
Use more random source
-rw-r--r--lib/setup.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setup.php b/lib/setup.php
index 27234635044..7260263d036 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -182,7 +182,7 @@ class OC_Setup {
//add prefix to the postgresql user name to prevent collissions
$dbusername='oc_'.$username;
//create a new password so we don't need to store the admin config in the config file
- $dbpassword=md5(time());
+ $dbpassword=md5(OC_Util::generate_random_bytes(30));
self::pg_createDBUser($dbusername, $dbpassword, $connection);