Skip to content
Snippets Groups Projects
Commit 0d0b861c authored by Roman Tolchenov's avatar Roman Tolchenov
Browse files

Re #11032. Fix boost compatibility issue on rhel6.

parent 2c1d048e
No related branches found
No related tags found
No related merge requests found
...@@ -193,9 +193,10 @@ bool FABADAMinimizer::iterate(size_t) { ...@@ -193,9 +193,10 @@ bool FABADAMinimizer::iterate(size_t) {
boost::mt19937 mt; boost::mt19937 mt;
mt.seed(123 * (int(m_counter) + mt.seed(123 * (int(m_counter) +
45 * int(i))); // Numeros inventados para la seed 45 * int(i))); // Numeros inventados para la seed
boost::random::normal_distribution<> distr(0, std::abs(m_jump[i])); boost::normal_distribution<double> distr(0.0, std::abs(m_jump[i]));
step = distr(mt); boost::variate_generator<
boost::mt19937, boost::normal_distribution<double>> gen(mt, distr);
step = gen();
} else { } else {
step = m_jump[i]; step = m_jump[i];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment