Use a more random source...

This commit is contained in:
Lukas Reschke 2013-04-04 00:56:34 +03:00
parent 40627a05a8
commit ba7c0cf548

View file

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