Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
FIxing srand() expects parameter 1 to be integer, string given
Type casting to integer
  • Loading branch information
Larry E. Masters committed Dec 13, 2015
1 parent 48e018e commit 6a68032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Utility/Security.php
Expand Up @@ -187,7 +187,7 @@ public static function cipher($text, $key) {
return '';
}

srand(Configure::read('Security.cipherSeed'));
srand((int)Configure::read('Security.cipherSeed'));
$out = '';
$keyLength = strlen($key);
for ($i = 0, $textLength = strlen($text); $i < $textLength; $i++) {
Expand Down

0 comments on commit 6a68032

Please sign in to comment.