This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/49553] mt19937 number generator is broken on 64bit systems
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 27 Jun 2011 21:54:13 +0000
- Subject: [Bug libstdc++/49553] mt19937 number generator is broken on 64bit systems
- Auto-submitted: auto-generated
- References: <bug-49553-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49553
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WONTFIX
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-06-27 21:54:09 UTC ---
No, the problem isn't in that typedef, which must be like that, per TR1. The
problem is a limitation of the tr1::uniform_int which doesn't work for an
UniformRandomNumberGenerator which generates numbers in a range smaller than
the required uniform_int output range (see the XXX comment). Fixing that was
not trivial, but it is now fixed in the C++0x uniform_int, whereas the TR1 code
ad this time is frozen, I'm sorry, if you still want to use it, please work
around the limitation (there are many ways).