[Pkg-owncloud-commits] [owncloud] 391/394: Use a more random source...
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:12:58 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.
commit 463039d5ebad4afdb0bf396b4cbc5287f0e70080
Author: Lukas Reschke <lukas at statuscode.ch>
Date: Thu Apr 4 00:56:34 2013 +0300
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 97656fd..e6c52a8 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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list