Use InsecureRandRange instead of InsecureRandBool

Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
Pasta 2019-07-08 13:38:47 -05:00
parent 1099c1ad60
commit d93b837326
No known key found for this signature in database
GPG Key ID: D362C9F7142766AE

View File

@ -93,7 +93,7 @@ void static RandomScript(CScript &script) {
}
void static RandomTransaction(CMutableTransaction &tx, bool fSingle) {
tx.nVersion = (InsecureRandBool()) + 1;
tx.nVersion = InsecureRandRange(2) + 1;
tx.vin.clear();
tx.vout.clear();
tx.nLockTime = (InsecureRandBool()) ? InsecureRand32() : 0;