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: "boris at dolgov dot name" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 27 Jun 2011 21:40:11 +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
--- Comment #1 from Boris Dolgov <boris at dolgov dot name> 2011-06-27 21:40:09 UTC ---
Created attachment 24610
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24610
Replace magic numbers to __WORDSIZE and __WORDSIZE-1
The attached patch solves the problem for me.