Skip to content

Commit

Permalink
resolve issue #7 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
markusgft authored Apr 29, 2019
1 parent e8e1538 commit 0af7ff9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ct_core/include/ct/core/common/UniformNoise.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
/*!
Expand Down Expand Up @@ -70,8 +68,6 @@ class UniformNoise


private:
double mean_;
double r_;

std::random_device rd_;
std::mt19937 eng_;
Expand Down

0 comments on commit 0af7ff9

Please sign in to comment.