Browse Source

edit qrand

pull/70/head
DenioD 4 years ago
parent
commit
6c37c8669d
  1. 2
      src/controller.cpp
  2. 2
      src/sietch.h

2
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;

2
src/sietch.h

@ -10683,7 +10683,7 @@ std::vector<QString> 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()]);

Loading…
Cancel
Save