Commit f2c46647 authored by Timo Koch's avatar Timo Koch
Browse files

[random] Initialize all members

parent 77ee618b
......@@ -118,7 +118,6 @@ public:
explicit SimpleNormalDistribution(Scalar mean, Scalar stddev = 1.0)
: mean_(mean)
, stddev_(stddev)
, isCached_(false)
{}
explicit SimpleNormalDistribution(const Parameters& p)
......@@ -183,8 +182,8 @@ private:
Scalar mean_;
Scalar stddev_;
bool isCached_;
Scalar cachedValue_;
bool isCached_ = false;
Scalar cachedValue_ = {};
};
/*!
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment