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:
Paolo Carlini 2009-06-30 01:25:52 +00:00 committed by Paolo Carlini
parent ddaa348855
commit 462ac91e72
2 changed files with 7 additions and 1 deletions

View File

@ -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>
* include/bits/random.h (__mod(_Tp)): Use defaults.

View File

@ -116,7 +116,7 @@ namespace std
const _UIntType __k0 = __m == 0 ? std::numeric_limits<_UIntType>::digits
: std::__lg(__m);
const _UIntType __k = (__k0 + 31) / 32;
_UIntType __arr[__k + 3];
uint_least32_t __arr[__k + 3];
__q.generate(__arr + 0, __arr + __k + 3);
_UIntType __factor = 1u;
_UIntType __sum = 0u;