diff --git a/common/framework/security.php b/common/framework/security.php index 5a2803c2d..da5ada968 100644 --- a/common/framework/security.php +++ b/common/framework/security.php @@ -153,7 +153,7 @@ class Security * @param string $format * @return string */ - public function getRandom($length = 32, $format = 'alnum') + public static function getRandom($length = 32, $format = 'alnum') { // Find out how many bytes of entropy we really need. switch($format)