From a05fae7b75424c096460b926ffe224cbfe230bb1 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Sat, 2 Nov 2013 10:14:17 +0100 Subject: [PATCH] remove unnecessary globals from generatePassword() function Signed-off-by: Michael Kaufmann (d00p) --- lib/functions/froxlor/function.generatePassword.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/functions/froxlor/function.generatePassword.php b/lib/functions/froxlor/function.generatePassword.php index 26b4285f..132e24c7 100644 --- a/lib/functions/froxlor/function.generatePassword.php +++ b/lib/functions/froxlor/function.generatePassword.php @@ -18,11 +18,6 @@ /** * Generates a random password */ - -function generatePassword() -{ - global $db, $settings, $theme; - +function generatePassword() { return substr(md5(uniqid(microtime(), 1)), 24, 10); } -?>