2
0
mirror of https://github.com/boostorg/random.git synced 2026-01-19 04:22:17 +00:00

geometric_distribution::min should be 0. Fixes #5704.

[SVN r74168]
This commit is contained in:
Steven Watanabe
2011-08-30 19:31:43 +00:00
parent 04ade5c792
commit 56e40890ca
2 changed files with 3 additions and 3 deletions

View File

@@ -124,7 +124,7 @@ public:
RealType p() const { return _p; }
/** Returns the smallest value that the distribution can produce. */
IntType min BOOST_PREVENT_MACRO_SUBSTITUTION () const { return IntType(1); }
IntType min BOOST_PREVENT_MACRO_SUBSTITUTION () const { return IntType(0); }
/** Returns the largest value that the distribution can produce. */
IntType max BOOST_PREVENT_MACRO_SUBSTITUTION () const

View File

@@ -16,9 +16,9 @@
#define BOOST_RANDOM_ARG1_DEFAULT 0.5
#define BOOST_RANDOM_ARG1_VALUE 0.25
#define BOOST_RANDOM_DIST0_MIN 1
#define BOOST_RANDOM_DIST0_MIN 0
#define BOOST_RANDOM_DIST0_MAX (std::numeric_limits<int>::max)()
#define BOOST_RANDOM_DIST1_MIN 1
#define BOOST_RANDOM_DIST1_MIN 0
#define BOOST_RANDOM_DIST1_MAX (std::numeric_limits<int>::max)()
#define BOOST_RANDOM_TEST1_PARAMS (0.9999)