Appease PHPCS.

This commit is contained in:
mark_story 2016-05-03 17:46:29 -04:00
parent af77d93bf3
commit efc2526600

View file

@ -191,8 +191,10 @@ class Security {
E_USER_WARNING E_USER_WARNING
); );
$bytes = ''; $bytes = '';
while (strlen($bytes) < $length) { $byteLength = 0;
while ($byteLength < $length) {
$bytes .= static::hash(CakeText::uuid() . uniqid(mt_rand(), true), 'sha512', true); $bytes .= static::hash(CakeText::uuid() . uniqid(mt_rand(), true), 'sha512', true);
$byteLength = strlen($bytes);
} }
return substr($bytes, 0, $length); return substr($bytes, 0, $length);
} }