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
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue