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