* [v3] libstdc++/50510
@ 2011-09-25 2:24 Paolo Carlini
0 siblings, 0 replies; only message in thread
From: Paolo Carlini @ 2011-09-25 2:24 UTC (permalink / raw)
To: gcc-patches; +Cc: libstdc++
[-- Attachment #1: Type: text/plain, Size: 76 bytes --]
Hi,
committed to mainline and 4_6-branch.
Paolo.
///////////////////////
[-- Attachment #2: CL_50510 --]
[-- Type: text/plain, Size: 137 bytes --]
2011-09-24 John Salmon <john.salmon@deshaw.com>
PR libstdc++/50510
* include/bits/random.tcc (seed_seq::generate): Fix computation.
[-- Attachment #3: patch_50510 --]
[-- Type: text/plain, Size: 539 bytes --]
Index: include/bits/random.tcc
===================================================================
--- include/bits/random.tcc (revision 179144)
+++ include/bits/random.tcc (working copy)
@@ -2796,8 +2796,8 @@
_Type __r4 = __r3 - __k % __n;
__r4 = __detail::__mod<_Type,
__detail::_Shift<_Type, 32>::__value>(__r4);
- __begin[(__k + __p) % __n] ^= __r4;
- __begin[(__k + __q) % __n] ^= __r3;
+ __begin[(__k + __p) % __n] ^= __r3;
+ __begin[(__k + __q) % __n] ^= __r4;
__begin[__k % __n] = __r4;
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-09-24 22:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-25 2:24 [v3] libstdc++/50510 Paolo Carlini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).