@@ -28,18 +28,18 @@ BOOST_AUTO_TEST_CASE(fastrandom_tests_deterministic)
2828 FastRandomContext ctx2{true };
2929
3030 {
31- BOOST_CHECK_EQUAL (GetRand <uint64_t >(), uint64_t {9330418229102544152u });
32- BOOST_CHECK_EQUAL (GetRand <int >(), int {618925161 });
31+ BOOST_CHECK_EQUAL (FastRandomContext (). rand <uint64_t >(), uint64_t {9330418229102544152u });
32+ BOOST_CHECK_EQUAL (FastRandomContext (). rand <int >(), int {618925161 });
3333 BOOST_CHECK_EQUAL (GetRandMicros (std::chrono::hours{1 }).count (), 1271170921 );
3434 BOOST_CHECK_EQUAL (GetRandMillis (std::chrono::hours{1 }).count (), 2803534 );
3535
36- BOOST_CHECK_EQUAL (GetRand <uint64_t >(), uint64_t {10170981140880778086u });
37- BOOST_CHECK_EQUAL (GetRand <int >(), int {1689082725 });
36+ BOOST_CHECK_EQUAL (FastRandomContext (). rand <uint64_t >(), uint64_t {10170981140880778086u });
37+ BOOST_CHECK_EQUAL (FastRandomContext (). rand <int >(), int {1689082725 });
3838 BOOST_CHECK_EQUAL (GetRandMicros (std::chrono::hours{1 }).count (), 2464643716 );
3939 BOOST_CHECK_EQUAL (GetRandMillis (std::chrono::hours{1 }).count (), 2312205 );
4040
41- BOOST_CHECK_EQUAL (GetRand <uint64_t >(), uint64_t {5689404004456455543u });
42- BOOST_CHECK_EQUAL (GetRand <int >(), int {785839937 });
41+ BOOST_CHECK_EQUAL (FastRandomContext (). rand <uint64_t >(), uint64_t {5689404004456455543u });
42+ BOOST_CHECK_EQUAL (FastRandomContext (). rand <int >(), int {785839937 });
4343 BOOST_CHECK_EQUAL (GetRandMicros (std::chrono::hours{1 }).count (), 93558804 );
4444 BOOST_CHECK_EQUAL (GetRandMillis (std::chrono::hours{1 }).count (), 507022 );
4545 }
@@ -82,18 +82,18 @@ BOOST_AUTO_TEST_CASE(fastrandom_tests_nondeterministic)
8282{
8383 // Check that a nondeterministic ones are not
8484 {
85- BOOST_CHECK (GetRand <uint64_t >() != uint64_t {9330418229102544152u });
86- BOOST_CHECK (GetRand <int >() != int {618925161 });
85+ BOOST_CHECK (FastRandomContext (). rand <uint64_t >() != uint64_t {9330418229102544152u });
86+ BOOST_CHECK (FastRandomContext (). rand <int >() != int {618925161 });
8787 BOOST_CHECK (GetRandMicros (std::chrono::hours{1 }).count () != 1271170921 );
8888 BOOST_CHECK (GetRandMillis (std::chrono::hours{1 }).count () != 2803534 );
8989
90- BOOST_CHECK (GetRand <uint64_t >() != uint64_t {10170981140880778086u });
91- BOOST_CHECK (GetRand <int >() != int {1689082725 });
90+ BOOST_CHECK (FastRandomContext (). rand <uint64_t >() != uint64_t {10170981140880778086u });
91+ BOOST_CHECK (FastRandomContext (). rand <int >() != int {1689082725 });
9292 BOOST_CHECK (GetRandMicros (std::chrono::hours{1 }).count () != 2464643716 );
9393 BOOST_CHECK (GetRandMillis (std::chrono::hours{1 }).count () != 2312205 );
9494
95- BOOST_CHECK (GetRand <uint64_t >() != uint64_t {5689404004456455543u });
96- BOOST_CHECK (GetRand <int >() != int {785839937 });
95+ BOOST_CHECK (FastRandomContext (). rand <uint64_t >() != uint64_t {5689404004456455543u });
96+ BOOST_CHECK (FastRandomContext (). rand <int >() != int {785839937 });
9797 BOOST_CHECK (GetRandMicros (std::chrono::hours{1 }).count () != 93558804 );
9898 BOOST_CHECK (GetRandMillis (std::chrono::hours{1 }).count () != 507022 );
9999 }
0 commit comments