From 1c885c8bd25ccd719fa35cf624add6ed9a3f2358 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Tue, 25 Jul 2017 23:45:59 +0200 Subject: [PATCH] Replace mt_rand with random_int in ProcessReleases class --- Changelog | 1 + nntmux/processing/ProcessReleases.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index af9baa7fb..fab2e3599 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2017-07-25 DariusIII + * Chg: Replace mt_rand with random_int in ProcessReleases class * Chg: Try to prevent creating new session on every BasePage load * Chg: Add automatic user profile role change for expired roles (role change date) on users list check (admin area) 2017-07-23 DariusIII diff --git a/nntmux/processing/ProcessReleases.php b/nntmux/processing/ProcessReleases.php index 119c10513..f44d78bb7 100755 --- a/nntmux/processing/ProcessReleases.php +++ b/nntmux/processing/ProcessReleases.php @@ -992,7 +992,7 @@ class ProcessReleases // Cleanup orphaned collections, binaries and parts // this really shouldn't happen, but just incase - so we only run 1/200 of the time - if (mt_rand(0, 200) <= 1) { + if (random_int(0, 200) <= 1) { // CBP collection orphaned with no binaries or parts. if ($this->echoCLI) { echo (