HomePhabricator

Add FastRandomContext::rand256() and ::randbytes()

Description

Add FastRandomContext::rand256() and ::randbytes()

Summary:
FastRandomContext now provides all functionality that the real Rand* functions
provide.

Test Plan:

make check

Added unit test

Reviewers: schancel, #bitcoin_abc

Reviewed By: schancel, #bitcoin_abc

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

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on May 2 2017, 18:04
deadalnixCommitted on Jan 4 2018, 12:44
deadalnixPushed on Jan 4 2018, 12:44
Reviewer
Restricted Project
Differential Revision
D881: Add FastRandomContext::rand256() and ::randbytes()
Parents
rABC97859c42b296: Merge test_random.h into test_bitcoin.h
Branches
Unknown
Tags
Unknown