Spread fetch pack requests correctly.

This commit is contained in:
JoelKatz
2013-06-10 22:28:22 -07:00
parent e18122df77
commit de13b60dd4

View File

@@ -326,7 +326,7 @@ bool LedgerMaster::acquireMissingLedger(Ledger::ref origLedger, const uint256& l
{
if (count++ == 0)
target = peer;
else if ((rand() % count) == 0)
else if ((rand() % ++count) == 0)
target = peer;
}
}