mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Appease PHPCS.
This commit is contained in:
parent
af77d93bf3
commit
efc2526600
1 changed files with 3 additions and 1 deletions
|
@ -191,8 +191,10 @@ class Security {
|
|||
E_USER_WARNING
|
||||
);
|
||||
$bytes = '';
|
||||
while (strlen($bytes) < $length) {
|
||||
$byteLength = 0;
|
||||
while ($byteLength < $length) {
|
||||
$bytes .= static::hash(CakeText::uuid() . uniqid(mt_rand(), true), 'sha512', true);
|
||||
$byteLength = strlen($bytes);
|
||||
}
|
||||
return substr($bytes, 0, $length);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue