HomePhabricator

random: fixes read buffer resizing in RandAddSeedPerfmon

Description

random: fixes read buffer resizing in RandAddSeedPerfmon

Summary:
+ Replaces std::max with std::min to resize buffer in RandAddSeedPerfmon
+ Documents behavior of RandAddSeedPerfmon
This is a backport of core#20082

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Ethan Heilman <ethan.r.heilman@gmail.com>Authored on Oct 5 2020, 01:07
PiRKCommitted on Nov 25 2021, 15:29
PiRKPushed on Nov 25 2021, 15:29
Reviewer
Restricted Project
Differential Revision
D10539: random: fixes read buffer resizing in RandAddSeedPerfmon
Parents
rABCa46f4c08b326: refactor: Clean up -Wlogical-op warning
Branches
Unknown
Tags
Unknown