Skip to content

Commit

Permalink
Fix generator for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
ppizarror committed Oct 30, 2024
1 parent 84dbcac commit 4c32210
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Delynoi/src/models/generator/functions/RandomDouble.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ std::mt19937 Random_Double::rng(rd());
Random_Double::Random_Double(const double min, const double max) {
this->min = min;
this->max = max;
this->uni = std::uniform_real_distribution(min, max);
// ReSharper disable once CppTemplateArgumentsCanBeDeduced
this->uni = std::uniform_real_distribution<double>(min, max); // Template required for MacOS
}

double Random_Double::apply(double x) {
Expand Down

0 comments on commit 4c32210

Please sign in to comment.