From 52b01775c2c94f08786696cae7836ca56f683739 Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Tue, 19 Nov 2019 09:42:45 -0800 Subject: Fix RNG -- this will break seeds, though. --- Test/RandomTests.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Test') 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) { int random3 = Random::RandInt(0, 1 << 30); ASSERT_NE(random3, random1); ASSERT_NE(random3, random2); +} + +TEST(RandomTests, EvenOdd) { + std::vector outputs; + for (int i=0; i<100; i++) { + outputs.emplace_back(Random::RandInt(0, 1)); + } + int k = 0; } \ No newline at end of file -- cgit 1.4.1