From ba7c0cf5489533d7dcf30b09698d3043beb4834d Mon Sep 17 00:00:00 2001
From: Lukas Reschke <lukas@statuscode.ch>
Date: Thu, 4 Apr 2013 00:56:34 +0300
Subject: [PATCH] Use a more random source...

---
 lib/setup.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 
-- 
GitLab