Page MenuHomePhabricator

Add RNG strengthening (10ms once every minute)

Authored by Fabien on May 19 2020, 13:37.


This patch improves the built-in RNG using hash strengthening.

At startup, and once every minute, 32 bytes of entropy are produced from
the RNG, repeatedly hashed using SHA512 for 10ms, and then fed back into
the RNG, together with high-precision timestamps obtained every 1000

Backport of core PR15224.

Test Plan
ninja all check-all

Diff Detail

rABC Bitcoin ABC
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Fabien requested review of this revision.May 19 2020, 13:37

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

deadalnix added a subscriber: deadalnix.
deadalnix added inline comments.
52 ↗(On Diff #20269)

There is a line break missing between the two sentences.

This revision is now accepted and ready to land.May 19 2020, 14:58
This revision was landed with ongoing or failed builds.May 19 2020, 15:37
This revision was automatically updated to reflect the committed changes.