Skip to content

Commit f74ccf1

Browse files
remicolletderickr
authored andcommitted
Use remicollet's version
1 parent 05ec1ac commit f74ccf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcrypt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ PHP_FUNCTION(mcrypt_create_iv)
14191419
n = (int)size;
14201420
while (size) {
14211421
#if PHP_VERSION_ID >= 80400
1422-
iv[--size] = (char) (255.0 * php_mt_rand() / RAND_MAX);
1422+
iv[--size] = (char) php_mt_rand_range(0, 255);
14231423
#else
14241424
iv[--size] = (char) (255.0 * php_rand() / RAND_MAX);
14251425
#endif

0 commit comments

Comments
 (0)