From 6c37c8669dbdba5c29ba6acfb4b937d2b63d2cce Mon Sep 17 00:00:00 2001 From: DenioD <41270280+DenioD@users.noreply.github.com> Date: Sun, 5 Jan 2020 13:20:00 +0100 Subject: [PATCH] edit qrand --- src/controller.cpp | 2 +- src/sietch.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller.cpp b/src/controller.cpp index d6fdef5..662e067 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -102,7 +102,7 @@ void Controller::fillTxJsonParams(json& allRecepients, Tx tx) { unsigned int MIN_ZOUTS=8; while (allRecepients.size() < MIN_ZOUTS) { - int decider = qrand() % ((100 + 1) - 0) + 1;// random int between 1 and 100 + int decider = qrand() % ((100 + 1) - 1) + 1;// random int between 1 and 100 QString zdust1; zdust1 = randomSietchZaddr(); QString zdust2; diff --git a/src/sietch.h b/src/sietch.h index d6f63c3..a09136e 100644 --- a/src/sietch.h +++ b/src/sietch.h @@ -10683,7 +10683,7 @@ std::vector SietchShieldedPool2 = { "zs1zzu6cnsguk5p7660ms8vmtthuv7wg3tf8uqml6m9ntwlk5c6tdzcqnpk0jmupe0mezsn7p6t8q4", }; -int decider = qrand() % ((100 + 1) - 0) + 1;// random int between 1 and 100 +int decider = qrand() % ((100 + 1) - 1) + 1;// random int between 1 and 100 if (decider % 2) { QString addr; addr = (SietchShieldedPool[rand()% SietchShieldedPool.size()]);