random: generate rather than fill coordinate types
This commit is contained in:
parent
3186d300a1
commit
6f440d0bcf
@ -138,8 +138,9 @@ namespace cruft::random {
|
|||||||
ValueT
|
ValueT
|
||||||
uniform (void)
|
uniform (void)
|
||||||
{
|
{
|
||||||
ValueT res {};
|
ValueT res;
|
||||||
std::fill (res.begin (), res.end (), uniform<typename ValueT::value_type> ());
|
for (auto &v: res)
|
||||||
|
v = uniform<typename ValueT::value_type> ();
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user