* include/ext/random.tcc (__gnu_cxx:normal_mv_distribution<>)

(operator()): Use __generate() function of _M_nd.

From-SVN: r190975
This commit is contained in:
Ulrich Drepper 2012-09-05 12:41:17 +00:00 committed by Ulrich Drepper
parent 22854930b9
commit ff99de9860
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2012-09-05 Ulrich Drepper <drepper@gmail.com>
* include/ext/random.tcc (__gnu_cxx:normal_mv_distribution<>)
(operator()): Use __generate() function of _M_nd.
* include/ext/random: Add __gnu_cxx:normal_mv_distribution<> class.
* include/ext/random.tccAdd out-of-line functions for
__gnu_cxx::normal_mv_distribution<>.

View File

@ -653,8 +653,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
result_type __ret;
for (size_t __i = 0; __i < _Dimen; ++__i)
__ret[__i] = _M_nd(__urng);
_M_nd.__generate(__ret.begin(), __ret.end(), __urng);
auto __t_it = __param._M_t.crbegin();
for (size_t __i = _Dimen; __i > 0; --__i)