[php-src] PR #12374: random: Remove RAND_RANGE_BADSCALING

From: Date: Fri, 06 Oct 2023 18:05:49 +0000
Subject: [php-src] PR #12374: random: Remove RAND_RANGE_BADSCALING
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-23800@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/12374 Author: TimWolla This macro is no longer used within php-src since 60ace13f9c5e2828bfa1c177479039f6abbd4319, it invokes undefined behavior depending on the input and the corresponding MT_RAND_PHP mode was deprecated in PHP 8.3. Thus remove this macro. Any remaining non-php-src user should just inline it into their code, but should ideally migrate to a non-biased scaler. In any case the undefined behavior of the original implementation should be accounted for.

« previous php.git-pulls (#23800) next »