Skip to content

Commit 9bd5df8

Browse files
authored
TEST: dito
1 parent 9001083 commit 9bd5df8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/s25Main/integration/testSerialization.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,10 +767,10 @@ BOOST_AUTO_TEST_CASE(SerializeRNGs)
767767
helpers::pushRng(ser, AI::getRandomGenerator());
768768
std::array<int, 10> nextValues;
769769
for(int& nextVal : nextValues)
770-
nextVal = AI::randomValue<int>();
770+
nextVal = static_cast<int>(AI::getRandomGenerator()());
771771
AI::getRandomGenerator() = helpers::popRng<decltype(AI::getRandomGenerator())>(ser);
772772
for(const int& nextVal : nextValues)
773-
BOOST_TEST(AI::randomValue<int>(), nextVal);
773+
BOOST_TEST(static_cast<int>(AI::getRandomGenerator()()), nextVal);
774774
BOOST_TEST(helpers::serializeRng(AI::getRandomGenerator()) == expectedAI);
775775
}
776776
}

0 commit comments

Comments
 (0)