+2011-03-14 Andrey Zholos <aaz@althenia.net>
+
+ PR libstdc++/48114
+ * include/bits/random.tcc (binomial_distribution<>::operator()):
+ Fix thinko in computation, __param.p() is a double.
+
2011-02-25 Johannes Singler <singler@kit.edu>
PR libstdc++/47433
// random number generation (out of line) -*- C++ -*-
-// Copyright (C) 2009, 2010 Free Software Foundation, Inc.
+// Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
{
result_type __ret;
const _IntType __t = __param.t();
- const _IntType __p = __param.p();
+ const double __p = __param.p();
const double __p12 = __p <= 0.5 ? __p : 1.0 - __p;
__detail::_Adaptor<_UniformRandomNumberGenerator, double>
__aurng(__urng);