[PATCH] PR libstdc++/80506 fix constant used in condition

Paolo Carlini paolo.carlini@oracle.com
Wed Apr 26 09:13:00 GMT 2017


Hi,

On 24/04/2017 15:43, Jonathan Wakely wrote:
> We use the wrong constant for the Marsaglia Tsang algorithm.
>
>     PR libstdc++/80506
>     * include/bits/random.tcc (gamma_distribution::operator()): Fix magic
>     number used in loop condition.
>
> Tested powerpc64le-linux, committed to trunk.

Thanks Jon for handling this. It would still be very nice to have a 
testcase...

Cheers,
Paolo.



More information about the Libstdc++ mailing list