From 8237461c3007918760f708059e3ec87f16b641fe Mon Sep 17 00:00:00 2001 From: drepper Date: Wed, 5 Sep 2012 12:41:17 +0000 Subject: * include/ext/random.tcc (__gnu_cxx:normal_mv_distribution<>) (operator()): Use __generate() function of _M_nd. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190975 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/include/ext/random.tcc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libstdc++-v3/include/ext/random.tcc') diff --git a/libstdc++-v3/include/ext/random.tcc b/libstdc++-v3/include/ext/random.tcc index 0fa006af0bd..988dc222829 100644 --- a/libstdc++-v3/include/ext/random.tcc +++ b/libstdc++-v3/include/ext/random.tcc @@ -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) -- cgit v1.2.1