mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Pass MCRYPT_DEV_URANDOM to mcrypt_create_iv() explicitly
This commit is contained in:
parent
5289aae64e
commit
fc397bd481
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ class Security {
|
|||
return openssl_random_pseudo_bytes($length);
|
||||
}
|
||||
if (function_exists('mcrypt_create_iv')) {
|
||||
return mcrypt_create_iv($length);
|
||||
return mcrypt_create_iv($length, MCRYPT_DEV_URANDOM);
|
||||
}
|
||||
trigger_error(
|
||||
'You do not have a safe source of random data available. ' .
|
||||
|
|
Loading…
Reference in a new issue