Commit 82582df6 by John Salmon Committed by Paolo Carlini

re PR libstdc++/50510 ([C++0x] transposed variable names in std::seed_seq::generate)

2011-09-24  John Salmon  <john.salmon@deshaw.com>

	PR libstdc++/50510
	* include/bits/random.tcc (seed_seq::generate): Fix computation.

From-SVN: r179149
parent 655ae828
2011-09-24 John Salmon <john.salmon@deshaw.com> 2011-09-24 John Salmon <john.salmon@deshaw.com>
PR libstdc++/50510
* include/bits/random.tcc (seed_seq::generate): Fix computation.
2011-09-24 John Salmon <john.salmon@deshaw.com>
PR libstdc++/50509 PR libstdc++/50509
* include/bits/random.tcc (seed_seq::generate): Fix computation. * include/bits/random.tcc (seed_seq::generate): Fix computation.
......
...@@ -2796,8 +2796,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -2796,8 +2796,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_Type __r4 = __r3 - __k % __n; _Type __r4 = __r3 - __k % __n;
__r4 = __detail::__mod<_Type, __r4 = __detail::__mod<_Type,
__detail::_Shift<_Type, 32>::__value>(__r4); __detail::_Shift<_Type, 32>::__value>(__r4);
__begin[(__k + __p) % __n] ^= __r4; __begin[(__k + __p) % __n] ^= __r3;
__begin[(__k + __q) % __n] ^= __r3; __begin[(__k + __q) % __n] ^= __r4;
__begin[__k % __n] = __r4; __begin[__k % __n] = __r4;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment