We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ba1978 commit 81fd84cCopy full SHA for 81fd84c
src/budget/budgetmanager.cpp
@@ -462,7 +462,7 @@ void CBudgetManager::VoteOnFinalizedBudgets()
462
463
// Do this 1 in 4 blocks -- spread out the voting activity
464
// -- this function is only called every fourteenth block, so this is really 1 in 56 blocks
465
- if (rand() % 4 != 0) {
+ if (GetRandInt(4) != 0) {
466
LogPrint(BCLog::MNBUDGET,"%s: waiting\n", __func__);
467
return;
468
}
@@ -832,7 +832,7 @@ void CBudgetManager::NewBlock(int height)
832
// incremental sync with our peers
833
if (masternodeSync.IsSynced()) {
834
LogPrint(BCLog::MNBUDGET,"%s: incremental sync started\n", __func__);
835
- if (rand() % 1440 == 0) {
+ if (GetRandInt(1440) == 0) {
836
ClearSeen();
837
ResetSync();
838
0 commit comments