HomePhabricator

[tests] Use FastRandomContext instead of boost::random::*

Description

[tests] Use FastRandomContext instead of boost::random::*

Summary:

Use FastRandomContext instead of
boost::random::{mt19937,uniform_int_distribution}.

Also include the fix from PR14093 fixing type mismatch (int truncated to
bool).

Backport of core PR10547 and PR14093
https://github.com/bitcoin/bitcoin/pull/10547/files
https://github.com/bitcoin/bitcoin/pull/14093/files

Test Plan:

./src/test/test_bitcoin -t scheduler_tests

Reviewers: #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

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

Details

Provenance
practicalswift <practicalswift@users.noreply.github.com>Authored on Jun 7 2017, 14:35
FabienCommitted on Jun 10 2019, 21:20
FabienPushed on Jun 10 2019, 21:20
Reviewer
Restricted Project
Differential Revision
D3275: [tests] Use FastRandomContext instead of boost::random::*
Parents
rABC3a0a0966a1d1: Don't assert(...) with side effects
Branches
Unknown
Tags
Unknown