diff options
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r-- | libstdc++-v3/include/bits/random.h | 8 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/random | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libstdc++-v3/include/bits/random.h b/libstdc++-v3/include/bits/random.h index bf7f32ff0f2..dde2dd45f9e 100644 --- a/libstdc++-v3/include/bits/random.h +++ b/libstdc++-v3/include/bits/random.h @@ -2178,7 +2178,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION */ result_type min() const - { return std::numeric_limits<result_type>::min(); } + { return std::numeric_limits<result_type>::lowest(); } /** * @brief Returns the least upper bound value of the distribution. @@ -3011,7 +3011,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION */ result_type min() const - { return std::numeric_limits<result_type>::min(); } + { return std::numeric_limits<result_type>::lowest(); } /** * @brief Returns the least upper bound value of the distribution. @@ -3428,7 +3428,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION */ result_type min() const - { return std::numeric_limits<result_type>::min(); } + { return std::numeric_limits<result_type>::lowest(); } /** * @brief Returns the least upper bound value of the distribution. @@ -5136,7 +5136,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION */ result_type min() const - { return std::numeric_limits<result_type>::min(); } + { return std::numeric_limits<result_type>::lowest(); } /** * @brief Returns the least upper bound value of the distribution. diff --git a/libstdc++-v3/include/ext/random b/libstdc++-v3/include/ext/random index 5f365e65a33..347ebed449c 100644 --- a/libstdc++-v3/include/ext/random +++ b/libstdc++-v3/include/ext/random @@ -791,7 +791,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION result_type min() const { result_type __res; - __res.fill(std::numeric_limits<_RealType>::min()); + __res.fill(std::numeric_limits<_RealType>::lowest()); return __res; } /** |