This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/33815] tr1::uniform_int isn't uniform



------- Comment #9 from paolo at gcc dot gnu dot org  2007-10-20 10:03 -------
Subject: Bug 33815

Author: paolo
Date: Sat Oct 20 10:03:10 2007
New Revision: 129508

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129508
Log:
2007-10-20  Paolo Carlini  <pcarlini@suse.de>

        * include/tr1/random
        (uniform_int<>::_M_call(_UniformRandomNumberGenerator&, result_type,
        result_type, true_type)): Fix small thinko.

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

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

Modified:
    branches/gcc-4_2-branch/libstdc++-v3/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33815


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]