BUGFIX Using RandomGenerator class in SecurityToken->generate() for more random tokens

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@114500 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-12-05 00:21:53 +00:00 committed by Sam Minnee
parent f8c970ec0c
commit 696de5d437

View File

@ -200,10 +200,13 @@ class SecurityToken extends Object {
} }
/** /**
* @uses RandomGenerator
*
* @return String * @return String
*/ */
protected function generate() { protected function generate() {
return rand(); $generator = new RandomGenerator();
return $generator->generateHash('sha1');
} }
} }