diff --git a/ext/random/randomizer.c b/ext/random/randomizer.c index 391cc16cc74..05461ea3b86 100644 --- a/ext/random/randomizer.c +++ b/ext/random/randomizer.c @@ -131,7 +131,7 @@ PHP_METHOD(Random_Randomizer, getInt) && ((php_random_status_state_mt19937 *) randomizer->status->state)->mode != MT_RAND_MT19937 )) { uint64_t r = php_random_algo_mt19937.generate(randomizer->status) >> 1; - + /* This is an inlined version of the RAND_RANGE_BADSCALING macro that does not invoke UB when encountering * (max - min) > ZEND_LONG_MAX. */