HomePhabricator

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

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

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
schancelPushed on Jan 5 2018, 23:52
Reviewer
Restricted Project
Differential Revision
D888: Replace rand() & ((1 << N) - 1) with randbits(N) in tests
Parents
rSTAGINGf73b598fd20d: Replace more rand() % NUM by randranges
Branches
Unknown
Tags
Unknown