Skip to content
Snippets Groups Projects
Commit ba7c0cf5 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Use a more random source...

parent 40627a05
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment