HomePhabricator

Make sure that GetRandomBytes never fails
65e3a1e76202Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Make sure that GetRandomBytes never fails

We're using GetRandomBytes in several contexts where it's either
unwieldy to return an error, or an error would mean a fatal exception
anyhow.

@gmaxwell checked OpenSSL a while ago and discovered that it never
actually fails, but it can't hurt to be a bit paranoid here.

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Nov 7 2014, 12:42
deadalnixPushed on May 14 2017, 22:04
Parents
rABC9ea87f9e187d: Merge pull request #5225
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rABC65e3a1e76202: Make sure that GetRandomBytes never fails (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Nov 7 2014, 12:49