Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Core/Kernel/elxElastixBase.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,9 @@ ElastixBase::BeforeAllBase()
* the default in the MersenneTwister code.
* Use silent parameter file readout, to avoid annoying warning when
* starting elastix */
using RandomGeneratorType = itk::Statistics::MersenneTwisterRandomVariateGenerator;
using SeedType = RandomGeneratorType::IntegerType;
unsigned int randomSeed = 121212;
itk::Statistics::MersenneTwisterRandomVariateGenerator::IntegerType randomSeed{ 121212 };
m_Configuration->ReadParameter(randomSeed, "RandomSeed", 0, false);
m_RandomVariateGenerator.SetSeed(static_cast<SeedType>(randomSeed));
m_RandomVariateGenerator.SetSeed(randomSeed);

/** Return a value. */
return returndummy;
Expand Down
Loading