diff options
author | MarcoFalke <falke.marco@gmail.com> | 2019-12-05 15:55:22 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2019-12-05 15:55:27 -0500 |
commit | 5d0b7f9e3d203522054b5ad31354332617a062b8 (patch) | |
tree | 329281f2057b0105971d28393110da998a44b569 /contrib/gitian-descriptors/gitian-win-signer.yml | |
parent | 910a4301b170680c8d14fd20101f067c2f52a0f9 (diff) | |
parent | 8bda0960f94dfb6462fc810cd61a8a065730eb79 (diff) |
Merge #17670: Move events_hasher into RNGState()
8bda0960f94dfb6462fc810cd61a8a065730eb79 Move events_hasher into RNGState() (Pieter Wuille)
Pull request description:
This moves `events_hasher` and `events_mutex` into `RNGState()` in random.cpp. This guarantees (through the existing `GetRNGState()` function) that the mutex is always created before any events are added, even when that happens inside global initializers.
Fixes the issue reported here: https://github.com/bitcoin/bitcoin/pull/17573#issuecomment-561828251, and includes the annotation from #17666).
ACKs for top commit:
MarcoFalke:
re-ACK 8bda0960f94dfb6462fc810cd61a8a065730eb79 🥈
sipsorcery:
re-ACK 8bda0960f94dfb6462fc810cd61a8a065730eb79.
Tree-SHA512: 78702d668764df19e9d61d87d82eca71cceca87d5351b740e13e732a1c18a3d53d7fbaaf63245266da597370bfebec9fa6a4749c15ec5a78dcfe6122c33553ed
Diffstat (limited to 'contrib/gitian-descriptors/gitian-win-signer.yml')
0 files changed, 0 insertions, 0 deletions