Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/core/include/mp-units/random.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ struct extreme_value_distribution : public std::extreme_value_distribution<typen
template<typename Generator>
Q operator()(Generator& g)
{
return Q(base::operator()(g));
return base::operator()(g) * Q::reference;
}

[[nodiscard]] Q a() const { return base::a() * Q::reference; }
Expand All @@ -313,7 +313,7 @@ struct normal_distribution : public std::normal_distribution<typename Q::rep> {
template<typename Generator>
Q operator()(Generator& g)
{
return Q(base::operator()(g));
return base::operator()(g) * Q::reference;
}

[[nodiscard]] Q mean() const { return base::mean() * Q::reference; }
Expand Down
Loading