We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7945e8e + 0d664b4 commit 37afc37Copy full SHA for 37afc37
src/core/include/mp-units/random.h
@@ -289,7 +289,7 @@ struct extreme_value_distribution : public std::extreme_value_distribution<typen
289
template<typename Generator>
290
Q operator()(Generator& g)
291
{
292
- return Q(base::operator()(g));
+ return base::operator()(g) * Q::reference;
293
}
294
295
[[nodiscard]] Q a() const { return base::a() * Q::reference; }
@@ -313,7 +313,7 @@ struct normal_distribution : public std::normal_distribution<typename Q::rep> {
313
314
315
316
317
318
319
[[nodiscard]] Q mean() const { return base::mean() * Q::reference; }
0 commit comments