summaryrefslogtreecommitdiffstats
path: root/lib/setup.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-04-04 00:56:34 +0300
committerLukas Reschke <lukas@statuscode.ch>2013-04-10 00:15:44 +0200
commit9a4fe09979ad1b6dfb0ed3943c988dd030ed9091 (patch)
treea6a2d1304d8533d60f1d89f81018107ffdff9120 /lib/setup.php
parente26cdc4cdd5a584f41cc5d78959321c3d81ff33d (diff)
downloadnextcloud-server-9a4fe09979ad1b6dfb0ed3943c988dd030ed9091.tar.gz
nextcloud-server-9a4fe09979ad1b6dfb0ed3943c988dd030ed9091.zip
Use a more random source...
Diffstat (limited to 'lib/setup.php')
-rw-r--r--lib/setup.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setup.php b/lib/setup.php
index b4b07bd70e4..54b6149fe27 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -333,7 +333,7 @@ class OC_Setup {
//add prefix to the postgresql user name to prevent collisions
$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);