https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83237

Michele Pezzutti <mpezz at tiscali dot it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpezz at tiscali dot it

--- Comment #1 from Michele Pezzutti <mpezz at tiscali dot it> ---
I think the value of the comparison function should be set to 1/78 for __x = 1:
* include/bits/random.tcc (poisson_distribution<_IntType>::operator()):

With gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4

1E8 samples

N     libstdc++    patch     expected
155   3154430      3155726   3154821.01
156   3178062      3179345   3178482.17
157   3179989      3181280   3181923.84
158   3204922(*)   3165234   3165208.67
159   3127941      3129209   3128778.91

(*) problematic value

Reply via email to