[Pkg-owncloud-commits] [owncloud] 06/07: Use more random source
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:09:46 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.0.14
in repository owncloud.
commit cdd10ba307d6802e0d27d27b745ac71ff7a10e5b
Author: Lukas Reschke <lukas at statuscode.ch>
Date: Wed Apr 10 00:18:26 2013 +0200
Use 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 2723463..7260263 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);
--
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