Skip to content

Commit

Permalink
Removed assert against doubles of too high a max value (though still …
Browse files Browse the repository at this point in the history
…only 30-bits of resolution.
  • Loading branch information
mercere99 committed Apr 6, 2018
1 parent e18dc32 commit 16e1ca8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/tools/Random.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @note This file is part of Empirical, https://github.com/devosoft/Empirical
* @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md
* @date 2015-2017
* @date 2015-2018
*
* @file Random.h
* @brief A versatile and non-patterned pseudo-random-number generator.
Expand Down Expand Up @@ -155,7 +155,7 @@ namespace emp {
* @param max The upper bound for the random numbers (will never be returned).
**/
inline double GetDouble(const double max) {
emp_assert(max <= (double) _RAND_MBIG, max); // Precision will be too low past this point...
// emp_assert(max <= (double) _RAND_MBIG, max, (double) _RAND_MBIG); // Precision will be too low past this point...
return GetDouble() * max;
}

Expand Down

0 comments on commit 16e1ca8

Please sign in to comment.