diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-19 09:42:45 -0800 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-19 09:42:45 -0800 |
commit | 52b01775c2c94f08786696cae7836ca56f683739 (patch) | |
tree | d6d7d7604c8f5d793be28bcf21753b02d7d31bb7 /Test/RandomTests.cpp | |
parent | 7a13ef0a94f6ed4989677530b1b37e1af0692fc7 (diff) | |
download | witness-tutorializer-52b01775c2c94f08786696cae7836ca56f683739.tar.gz witness-tutorializer-52b01775c2c94f08786696cae7836ca56f683739.tar.bz2 witness-tutorializer-52b01775c2c94f08786696cae7836ca56f683739.zip |
Fix RNG -- this will break seeds, though.
Diffstat (limited to 'Test/RandomTests.cpp')
-rw-r--r-- | Test/RandomTests.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/RandomTests.cpp b/Test/RandomTests.cpp index a4fd410..20a86e5 100644 --- a/Test/RandomTests.cpp +++ b/Test/RandomTests.cpp | |||
@@ -32,4 +32,12 @@ TEST(RandomTests, SeedChangesInitialValue) { | |||
32 | int random3 = Random::RandInt(0, 1 << 30); | 32 | int random3 = Random::RandInt(0, 1 << 30); |
33 | ASSERT_NE(random3, random1); | 33 | ASSERT_NE(random3, random1); |
34 | ASSERT_NE(random3, random2); | 34 | ASSERT_NE(random3, random2); |
35 | } | ||
36 | |||
37 | TEST(RandomTests, EvenOdd) { | ||
38 | std::vector<int> outputs; | ||
39 | for (int i=0; i<100; i++) { | ||
40 | outputs.emplace_back(Random::RandInt(0, 1)); | ||
41 | } | ||
42 | int k = 0; | ||
35 | } \ No newline at end of file | 43 | } \ No newline at end of file |