summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/ext/random.tcc
diff options
context:
space:
mode:
authordrepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-05 12:41:17 +0000
committerdrepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-05 12:41:17 +0000
commit8237461c3007918760f708059e3ec87f16b641fe (patch)
treeabe8021ed92eb417189041229c57426c14a58496 /libstdc++-v3/include/ext/random.tcc
parentae260dcca75e4533feb88008e0b6955f9285a94e (diff)
downloadgcc-8237461c3007918760f708059e3ec87f16b641fe.tar.gz
* 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
Diffstat (limited to 'libstdc++-v3/include/ext/random.tcc')
-rw-r--r--libstdc++-v3/include/ext/random.tcc3
1 files changed, 1 insertions, 2 deletions
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)