Permalink
Browse files

Appease PHPCS.

  • Loading branch information...
markstory committed May 3, 2016
1 parent af77d93 commit efc25266007bd364ab44e13adcedc4fbafce4675
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Cake/Utility/Security.php
@@ -191,8 +191,10 @@ public static function randomBytes($length) {
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);
}

0 comments on commit efc2526

Please sign in to comment.