remove unnecessary globals from generatePassword() function

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-11-02 10:14:17 +01:00
parent d9903e1be2
commit a05fae7b75

View File

@@ -18,11 +18,6 @@
/**
* Generates a random password
*/
function generatePassword()
{
global $db, $settings, $theme;
function generatePassword() {
return substr(md5(uniqid(microtime(), 1)), 24, 10);
}
?>