There was an error while loading. Please reload this page.
1 parent 9001083 commit 9bd5df8Copy full SHA for 9bd5df8
1 file changed
tests/s25Main/integration/testSerialization.cpp
@@ -767,10 +767,10 @@ BOOST_AUTO_TEST_CASE(SerializeRNGs)
767
helpers::pushRng(ser, AI::getRandomGenerator());
768
std::array<int, 10> nextValues;
769
for(int& nextVal : nextValues)
770
- nextVal = AI::randomValue<int>();
+ nextVal = static_cast<int>(AI::getRandomGenerator()());
771
AI::getRandomGenerator() = helpers::popRng<decltype(AI::getRandomGenerator())>(ser);
772
for(const int& nextVal : nextValues)
773
- BOOST_TEST(AI::randomValue<int>(), nextVal);
+ BOOST_TEST(static_cast<int>(AI::getRandomGenerator()()), nextVal);
774
BOOST_TEST(helpers::serializeRng(AI::getRandomGenerator()) == expectedAI);
775
}
776
0 commit comments