summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-04-04 00:46:24 -0700
committerBart Visscher <bartv@thisnet.nl>2013-04-04 00:46:24 -0700
commit866221a01268c0783a1a759741b778332a7692d2 (patch)
tree02c6f79b07540298bd62faec742f1bbaa92c57dd
parentcbece8b12ff50d625f526e0a1cc6345159b62eaa (diff)
parent37cb79155e1e168eb348036a96947f84a86ee5c1 (diff)
downloadnextcloud-server-866221a01268c0783a1a759741b778332a7692d2.tar.gz
nextcloud-server-866221a01268c0783a1a759741b778332a7692d2.zip
Merge pull request #2707 from owncloud/remove_brainfucked_method
Use more random source
-rw-r--r--lib/user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/user.php b/lib/user.php
index 6144f0f6bf9..33e25268175 100644
--- a/lib/user.php
+++ b/lib/user.php
@@ -386,7 +386,7 @@ class OC_User {
* generates a password
*/
public static function generatePassword() {
- return uniqId();
+ return OC_Util::generate_random_bytes(30);
}
/**