Skip to content

Commit 5bc56cc

Browse files
committed
Make finite difference test deterministic
1 parent 0400682 commit 5bc56cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/integration/test_Dynamics.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2270,6 +2270,7 @@ TEST_F(DynamicsTest, testJacobians)
22702270
//==============================================================================
22712271
TEST_F(DynamicsTest, testFiniteDifference)
22722272
{
2273+
dart::math::Random::setSeed(42);
22732274
for (std::size_t i = 0; i < getList().size(); ++i) {
22742275
#if DART_BUILD_MODE_DEBUG
22752276
dtdbg << getList()[i].toString() << std::endl;

0 commit comments

Comments
 (0)