MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / Shuffle

Method Shuffle

src/wallet/spend.cpp:229–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void CoinsResult::Shuffle(FastRandomContext& rng_fast)
230{
231 for (auto& it : coins) {
232 std::shuffle(it.second.begin(), it.second.end(), rng_fast);
233 }
234}
235
236void CoinsResult::Add(OutputType type, const COutput& out)
237{

Callers 1

AutomaticCoinSelectionFunction · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected