diff --git a/lib/Cake/Utility/Security.php b/lib/Cake/Utility/Security.php index 1068bdfdf..3aa2a4150 100644 --- a/lib/Cake/Utility/Security.php +++ b/lib/Cake/Utility/Security.php @@ -220,7 +220,7 @@ class Security { return ''; } - srand((int)Configure::read('Security.cipherSeed')); + srand((int)(float)Configure::read('Security.cipherSeed')); $out = ''; $keyLength = strlen($key); for ($i = 0, $textLength = strlen($text); $i < $textLength; $i++) {