diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-04-10 00:18:26 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-04-10 00:18:29 +0200 |
commit | cdd10ba307d6802e0d27d27b745ac71ff7a10e5b (patch) | |
tree | eb54059c58a064b51ff928293072f6942bac44b0 | |
parent | 81f5324a76efb312117f76fed471c128c23533b7 (diff) | |
download | nextcloud-server-cdd10ba307d6802e0d27d27b745ac71ff7a10e5b.tar.gz nextcloud-server-cdd10ba307d6802e0d27d27b745ac71ff7a10e5b.zip |
Use 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 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); |