Use InsecureRandRange instead of InsecureRandBool
Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
parent
1099c1ad60
commit
d93b837326
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user