HomePhabricator

Add assertion to randrange that input is not 0

Description

Add assertion to randrange that input is not 0

Summary:
randrange is not intended to be called with argument 0.

This is a backport of Core PR17293

Test Plan: ninja all check-all

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, jasonbcox

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, jasonbcox

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

Details

Provenance
Jeremy Rubin <j@rubin.io>Authored on Nov 2 2020, 19:34
PiRKCommitted on Nov 2 2020, 19:34
abc-botPushed on Nov 2 2020, 19:38
Reviewer
Restricted Owners Package
Differential Revision
D8237: Add assertion to randrange that input is not 0
Parents
rABC6e8a49671a13: Use std::vector API for construction of test data.
Branches
Unknown
Tags
Unknown