mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
random: replace construct/assign with explicit Reseed()
This commit is contained in:
parent
2ae392d561
commit
ce8094246e
7 changed files with 32 additions and 47 deletions
|
|
@ -34,5 +34,5 @@ void SeedRandomForTest(SeedRand seedtype)
|
|||
const uint256& seed{seedtype == SeedRand::SEED ? ctx_seed : uint256::ZERO};
|
||||
LogPrintf("%s: Setting random seed for current tests to %s=%s\n", __func__, RANDOM_CTX_SEED, seed.GetHex());
|
||||
MakeRandDeterministicDANGEROUS(seed);
|
||||
g_insecure_rand_ctx = FastRandomContext(GetRandHash());
|
||||
g_insecure_rand_ctx.Reseed(GetRandHash());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue