HomePhabricator

Replace rand() & ((1 << N) - 1) with randbits(N) in tests

Description

Replace rand() & ((1 << N) - 1) with randbits(N) in tests

Summary: As per title

Test Plan:

make check

Reviewers: schancel, #bitcoin_abc

Reviewed By: schancel, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D888

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Jun 7 2017, 18:34
deadalnixCommitted on Jan 5 2018, 12:38
deadalnixPushed on Jan 5 2018, 12:38
Reviewer
Restricted Project
Differential Revision
D888: Replace rand() & ((1 << N) - 1) with randbits(N) in tests
Parents
rABCf73b598fd20d: Replace more rand() % NUM by randranges
Branches
Unknown
Tags
Unknown