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()]);