| 278 | UtxoData utxoData; |
| 279 | |
| 280 | UtxoData::iterator FindRandomFrom(const std::set<COutPoint> &utxoSet) { |
| 281 | assert(utxoSet.size()); |
| 282 | auto utxoSetIt = utxoSet.lower_bound(COutPoint(InsecureRand256(), 0)); |
| 283 | if (utxoSetIt == utxoSet.end()) { |
| 284 | utxoSetIt = utxoSet.begin(); |
| 285 | } |
| 286 | auto utxoDataIt = utxoData.find(*utxoSetIt); |
| 287 | assert(utxoDataIt != utxoData.end()); |
| 288 | return utxoDataIt; |
| 289 | } |
| 290 | |
| 291 | |
| 292 | // This test is similar to the previous test |
no test coverage detected