diff options
author | Jon Atack <jon@atack.com> | 2023-01-20 11:05:09 -0800 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2023-02-09 15:03:36 -0800 |
commit | 9d92c3d7f42c18939a9a6aa1ee185f1c958360a0 (patch) | |
tree | 58ee1fceb4c166575e346faaaff2454e41171875 /src/test/sighash_tests.cpp | |
parent | 81f5ade2a324167c03c5ce765a26bd42ed652723 (diff) |
Create InsecureRandMoneyAmount() test util helper
to generate semi-random CAmounts up to MAX_MONEY rather
than only uint32, and use it in the unit tests.
Diffstat (limited to 'src/test/sighash_tests.cpp')
-rw-r--r-- | src/test/sighash_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/sighash_tests.cpp b/src/test/sighash_tests.cpp index 0a33d1b26f..e2d11afa6a 100644 --- a/src/test/sighash_tests.cpp +++ b/src/test/sighash_tests.cpp @@ -110,7 +110,7 @@ void static RandomTransaction(CMutableTransaction& tx, bool fSingle) for (int out = 0; out < outs; out++) { tx.vout.push_back(CTxOut()); CTxOut &txout = tx.vout.back(); - txout.nValue = InsecureRandRange(100000000); + txout.nValue = InsecureRandMoneyAmount(); RandomScript(txout.scriptPubKey); } } |