Skip to content
Permalink
Browse files

FIxing srand() expects parameter 1 to be integer, string given

Type casting to integer
  • Loading branch information...
Larry E. Masters
Larry E. Masters committed Dec 13, 2015
1 parent 48e018e commit 6a68032e0b6d6115e0c47ee5615a8ba82245561d
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Utility/Security.php
@@ -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++) {

0 comments on commit 6a68032

Please sign in to comment.
You can’t perform that action at this time.