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
This commit is contained in:
John Salmon 2011-09-24 22:34:50 +00:00 committed by Paolo Carlini
parent 655ae828ee
commit 82582df651
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -2796,8 +2796,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_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;
}
}