http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51795
--- Comment #23 from spoon.reloaded at gmail dot com 2012-01-27 21:52:48 UTC ---
By the way, the Boost library also has an implementation of this. Are there any
problems with the license to look at it?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51795
--- Comment #20 from spoon.reloaded at gmail dot com 2012-01-27 21:39:11 UTC ---
Someone posted a thread here:
http://objectmix.com/java/312426-extending-schrage-multiplication.html
about ways to overcome the preconditions of Shrage's algo
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51795
--- Comment #19 from spoon.reloaded at gmail dot com 2012-01-27 21:21:40 UTC ---
Paulo, in response to your suggestion to simply do multiplication and modulo in
#7 and #8, I don't think that would work in general. The example I gave
happen
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51795
Bug #: 51795
Summary: linear_congruential_engine doesn't work correctly
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal