mirror of
https://github.com/php/pecl-encryption-mcrypt.git
synced 2026-03-23 23:12:15 +01:00
Use remicollet's version
This commit is contained in:
committed by
Derick Rethans
parent
05ec1ac459
commit
f74ccf197a
2
mcrypt.c
2
mcrypt.c
@@ -1419,7 +1419,7 @@ PHP_FUNCTION(mcrypt_create_iv)
|
||||
n = (int)size;
|
||||
while (size) {
|
||||
#if PHP_VERSION_ID >= 80400
|
||||
iv[--size] = (char) (255.0 * php_mt_rand() / RAND_MAX);
|
||||
iv[--size] = (char) php_mt_rand_range(0, 255);
|
||||
#else
|
||||
iv[--size] = (char) (255.0 * php_rand() / RAND_MAX);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user