buffer/circular: use the new form of 'random::choose'
This commit is contained in:
parent
14e1e7e7c1
commit
5e17e5d275
@ -41,7 +41,7 @@ tmpname (std::string &str, size_t length)
|
||||
|
||||
str.resize (length);
|
||||
std::generate_n (str.begin (), length, [&] (void) {
|
||||
return cruft::random::choose (alphanum);
|
||||
return *cruft::random::choose (alphanum);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user