re PR libstdc++/33815 (tr1::uniform_int isn't uniform)
authorPaolo Carlini <paolo@gcc.gnu.org>
Tue, 30 Oct 2007 13:05:26 +0000 (13:05 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 30 Oct 2007 13:05:26 +0000 (13:05 +0000)
commitebb82e27513e78bac987eda8a6cca289be3ff43d
tree2ba79277f8e16d30c740eb3681da9226b66ffaa5
parent19d8eb46e30f295f89708eafec1170e712565823
re PR libstdc++/33815 (tr1::uniform_int isn't uniform)

2007-10-19  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/33815
* include/tr1_impl/random
(uniform_int<>::_M_call(_UniformRandomNumberGenerator&, result_type,
result_type, true_type)): Avoid the modulo (which uses the low-order
bits).

From-SVN: r129769
libstdc++-v3/ChangeLog
libstdc++-v3/include/tr1_impl/random
libstdc++-v3/include/tr1_impl/random.tcc