Replace mt_rand with random_int in ProcessReleases class

This commit is contained in:
DariusIII
2017-07-25 23:45:59 +02:00
parent 046c1cda07
commit 1c885c8bd2
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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
+1 -1
View File
@@ -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 (