From 0af7ff9722ab303852c8f2eda1287ddcc762a8e1 Mon Sep 17 00:00:00 2001 From: Markus Giftthaler Date: Mon, 29 Apr 2019 23:16:59 +0200 Subject: [PATCH] resolve issue #7 (#8) --- ct_core/include/ct/core/common/UniformNoise.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ct_core/include/ct/core/common/UniformNoise.h b/ct_core/include/ct/core/common/UniformNoise.h index d2dea24d5..f782034de 100644 --- a/ct_core/include/ct/core/common/UniformNoise.h +++ b/ct_core/include/ct/core/common/UniformNoise.h @@ -25,9 +25,7 @@ class UniformNoise * @param mean the mean of the uniform distribution * @param r the half-width of the distribution */ - UniformNoise(const double mean = 0.0, const double r = 1.0) - : mean_(mean), r_(r), rd_(), eng_(rd_()), distr_(mean-r, mean+r) - {} + UniformNoise(const double mean = 0.0, const double r = 1.0) : rd_(), eng_(rd_()), distr_(mean - r, mean + r) {} //! Scalar generator /*! @@ -70,8 +68,6 @@ class UniformNoise private: - double mean_; - double r_; std::random_device rd_; std::mt19937 eng_;