re PR libstdc++/83237 (Values returned by std::poisson_distribution are not distribut...
authorMichele Pezzutti <mpezz@tiscali.it>
Sun, 24 Dec 2017 22:08:52 +0000 (23:08 +0100)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 24 Dec 2017 22:08:52 +0000 (22:08 +0000)
commit73986c315bdf126a2100869878790dcfbab6bd82
tree1ccec5ba66d7fca8f6235b54de3881a234da2eb0
parent4f9621392f941937b5dca01eacfb3ba81b955476
re PR libstdc++/83237 (Values returned by std::poisson_distribution are not distributed correctly)

2017-12-24  Michele Pezzutti <mpezz@tiscali.it>

PR libstdc++/83237
* include/bits/random.tcc (poisson_distribution<>::operator()):
Fix __x = 1 case - see updated Errata of Devroye's treatise.
* testsuite/26_numerics/random/poisson_distribution/operators/
values.cc: Add test.
* testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error
line number.

From-SVN: r255993
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/random.tcc
libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/operators/values.cc
libstdc++-v3/testsuite/26_numerics/random/pr60037-neg.cc