Generate a random GenTxid; the txhash follows NewTxHash; the is_wtxid flag is random. */
| 220 | |
| 221 | /** Generate a random GenTxid; the txhash follows NewTxHash; the is_wtxid flag is random. */ |
| 222 | GenTxid NewGTxid(const std::vector<std::vector<NodeId>>& orders = {}) |
| 223 | { |
| 224 | return InsecureRandBool() ? GenTxid::Wtxid(NewTxHash(orders)) : GenTxid::Txid(NewTxHash(orders)); |
| 225 | } |
| 226 | |
| 227 | /** Generate a new random NodeId to use as peer. The same NodeId is never returned twice |
| 228 | * (across all Scenarios combined). */ |
no test coverage detected