mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 13:35:54 +00:00
Spread fetch pack requests correctly.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user