MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetShuffledInputVector

Method GetShuffledInputVector

src/wallet/coinselection.cpp:610–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

608}
609
610std::vector<CInputCoin> SelectionResult::GetShuffledInputVector() const
611{
612 std::vector<CInputCoin> coins(m_selected_inputs.begin(), m_selected_inputs.end());
613 Shuffle(coins.begin(), coins.end(), FastRandomContext());
614 return coins;
615}
616
617bool SelectionResult::operator<(SelectionResult other) const
618{

Callers 1

spend.cppFile · 0.80

Calls 4

FastRandomContextClass · 0.85
ShuffleFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected