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:
parent
655ae828ee
commit
82582df651
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user