Skip to content
Prev Previous commit
random: Remove useless cast in php_mt_srand()
  • Loading branch information
TimWolla committed Feb 27, 2024
commit ed18365ad81e0768aa000bf06a6f43c8830f75e0
3 changes: 1 addition & 2 deletions ext/random/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,7 @@ PHPAPI double php_combined_lcg(void)
/* {{{ php_mt_srand */
PHPAPI void php_mt_srand(uint32_t seed)
{
/* Seed the generator with a simple uint32 */
php_random_mt19937_seed32(php_random_default_status(), (zend_long) seed);
php_random_mt19937_seed32(php_random_default_status(), seed);
}
/* }}} */

Expand Down