random: replace construct/assign with explicit Reseed()

This commit is contained in:
Pieter Wuille
2024-05-31 10:39:23 -04:00
parent 2ae392d561
commit ce8094246e
7 changed files with 32 additions and 47 deletions

View File

@@ -106,7 +106,7 @@ BOOST_AUTO_TEST_CASE(DoS_mapOrphans)
// ecdsa_signature_parse_der_lax are executed during this test.
// Specifically branches that run only when an ECDSA
// signature's R and S values have leading zeros.
g_insecure_rand_ctx = FastRandomContext{uint256{33}};
g_insecure_rand_ctx.Reseed(uint256{33});
TxOrphanageTest orphanage;
CKey key;