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

@@ -253,7 +253,7 @@ BOOST_AUTO_TEST_CASE(xoroshiro128plusplus_reference_values)
BOOST_TEST(0x6ea7c59f89bbfc75 == rng());
// seed with a random number
rng = InsecureRandomContext(0x1a26f3fa8546b47a);
rng.Reseed(0x1a26f3fa8546b47a);
BOOST_TEST(0xc8dc5e08d844ac7d == rng());
BOOST_TEST(0x5b5f1f6d499dad1b == rng());
BOOST_TEST(0xbeb0031f93313d6f == rng());