diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-04-04 01:56:34 +0400 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-04-10 02:17:36 +0400 |
commit | 463039d5ebad4afdb0bf396b4cbc5287f0e70080 (patch) | |
tree | 04a78fd615b347c07dd6bcdf6cf9dd9ccafd0ff6 | |
parent | 6b6cefef84107c2c548496d0cbf29ef06fd4bf1c (diff) |
Use a more random source...
-rw-r--r-- | lib/setup.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setup.php b/lib/setup.php index 97656fd50f2..e6c52a8266d 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -199,7 +199,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); |