Skip to content

Commit 16e1ca8

Browse files
committed
Removed assert against doubles of too high a max value (though still only 30-bits of resolution.
1 parent e18dc32 commit 16e1ca8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/tools/Random.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @note This file is part of Empirical, https://github.com/devosoft/Empirical
33
* @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md
4-
* @date 2015-2017
4+
* @date 2015-2018
55
*
66
* @file Random.h
77
* @brief A versatile and non-patterned pseudo-random-number generator.
@@ -155,7 +155,7 @@ namespace emp {
155155
* @param max The upper bound for the random numbers (will never be returned).
156156
**/
157157
inline double GetDouble(const double max) {
158-
emp_assert(max <= (double) _RAND_MBIG, max); // Precision will be too low past this point...
158+
// emp_assert(max <= (double) _RAND_MBIG, max, (double) _RAND_MBIG); // Precision will be too low past this point...
159159
return GetDouble() * max;
160160
}
161161

0 commit comments

Comments
 (0)