From 75f7695c62d2938521cdefdd1ddb21c870ac0ea3 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Thu, 14 Apr 2011 15:59:22 +0000 Subject: [PATCH] Think-o in poisson_distribution at mean == 10 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@129520 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/random | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/random b/include/random index e08428dd..49646e90 100644 --- a/include/random +++ b/include/random @@ -4477,7 +4477,7 @@ poisson_distribution<_IntType>::operator()(_URNG& __urng, const param_type& __pr { result_type __x; uniform_real_distribution __urd; - if (__pr.__mean_ <= 10) + if (__pr.__mean_ < 10) { __x = 0; for (double __p = __urd(__urng); __p > __pr.__l_; ++__x)