Spread fetch pack requests correctly.

This commit is contained in:
JoelKatz
2013-06-10 22:28:22 -07:00
parent 1bfaf652fc
commit b757d9fd72

View File

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