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

Method GetShuffledInputVector

src/wallet/coinselection.cpp:1015–1020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1013}
1014
1015std::vector<std::shared_ptr<COutput>> SelectionResult::GetShuffledInputVector() const
1016{
1017 std::vector<std::shared_ptr<COutput>> coins(m_selected_inputs.begin(), m_selected_inputs.end());
1018 std::shuffle(coins.begin(), coins.end(), FastRandomContext());
1019 return coins;
1020}
1021
1022bool SelectionResult::operator<(SelectionResult other) const
1023{

Callers 3

spend.cppFile · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 3

FastRandomContextClass · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64