From 769187e68e232abfb1fa2d78f544978bb7c92a97 Mon Sep 17 00:00:00 2001 From: Shubham Agrawal <58412969+shubham1206agra@users.noreply.github.com> Date: Thu, 9 Jun 2022 09:16:31 +0530 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Ryan Curtin --- src/mlpack/core/math/random.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mlpack/core/math/random.hpp b/src/mlpack/core/math/random.hpp index 291f3cc0f4..f130c1f8f9 100644 --- a/src/mlpack/core/math/random.hpp +++ b/src/mlpack/core/math/random.hpp @@ -33,14 +33,14 @@ inline std::mt19937& RandGen() //! Global uniform distribution. inline std::uniform_real_distribution<>& RandUniformDist() { - static std::uniform_real_distribution<> randUniformDist(0.0, 0.1); + static std::uniform_real_distribution<> randUniformDist(0.0, 1.0); return randUniformDist; } //! Global normal distribution. inline std::normal_distribution<>& RandNormalDist() { - static std::normal_distribution<> randNormalDist(0.0, 0.1); + static std::normal_distribution<> randNormalDist(0.0, 1.0); return randNormalDist; }