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 created this revision.May 19 2020, 13:37
Herald added a reviewer: Restricted Project. · View Herald TranscriptMay 19 2020, 13:37
Fabien requested review of this revision.May 19 2020, 13:37
teamcity edited the summary of this revision. (Show Details)May 19 2020, 13:38

[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 accepted this revision.May 19 2020, 14:58
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
Fabien updated this revision to Diff 20277.May 19 2020, 15:36

Newline in comment

This revision was landed with ongoing or failed builds.May 19 2020, 15:37
This revision was automatically updated to reflect the committed changes.