2009-06-29 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/random.tcc (linear_congruential_engine<>::seed(seed_seq&)): Use uint_least32_t as array type. From-SVN: r149078
This commit is contained in:
parent
ddaa348855
commit
462ac91e72
|
@ -1,3 +1,9 @@
|
||||||
|
2009-06-29 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
|
* include/bits/random.tcc
|
||||||
|
(linear_congruential_engine<>::seed(seed_seq&)): Use uint_least32_t
|
||||||
|
as array type.
|
||||||
|
|
||||||
2009-06-29 Paolo Carlini <paolo.carlini@oracle.com>
|
2009-06-29 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
* include/bits/random.h (__mod(_Tp)): Use defaults.
|
* include/bits/random.h (__mod(_Tp)): Use defaults.
|
||||||
|
|
|
@ -116,7 +116,7 @@ namespace std
|
||||||
const _UIntType __k0 = __m == 0 ? std::numeric_limits<_UIntType>::digits
|
const _UIntType __k0 = __m == 0 ? std::numeric_limits<_UIntType>::digits
|
||||||
: std::__lg(__m);
|
: std::__lg(__m);
|
||||||
const _UIntType __k = (__k0 + 31) / 32;
|
const _UIntType __k = (__k0 + 31) / 32;
|
||||||
_UIntType __arr[__k + 3];
|
uint_least32_t __arr[__k + 3];
|
||||||
__q.generate(__arr + 0, __arr + __k + 3);
|
__q.generate(__arr + 0, __arr + __k + 3);
|
||||||
_UIntType __factor = 1u;
|
_UIntType __factor = 1u;
|
||||||
_UIntType __sum = 0u;
|
_UIntType __sum = 0u;
|
||||||
|
|
Loading…
Reference in New Issue