diff --git a/security/SecurityToken.php b/security/SecurityToken.php index 96035ab5f..964c47de4 100644 --- a/security/SecurityToken.php +++ b/security/SecurityToken.php @@ -200,10 +200,13 @@ class SecurityToken extends Object { } /** + * @uses RandomGenerator + * * @return String */ protected function generate() { - return rand(); + $generator = new RandomGenerator(); + return $generator->generateHash('sha1'); } }