Skip to content

Commit

Permalink
Update URDFModelImportUnitTest.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored Dec 4, 2023
1 parent 65a1322 commit 11c289e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model_io/codecs/tests/URDFModelImportUnitTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <random>

using namespace iDynTree;

Expand Down Expand Up @@ -198,8 +199,7 @@ void checkLoadReducedModelOrderIsKept(std::string urdfFileName)
}
}

std::random_device rd;
std::mt19937 random_gen(rd());
std::mt19937 random_gen(0);
std::shuffle(dofsName.begin(), dofsName.end(), random_gen);

//now load the new model and check they are the same
Expand Down

0 comments on commit 11c289e

Please sign in to comment.