buffer/circular: use the new form of 'random::choose'

This commit is contained in:
Danny Robson 2019-05-26 12:11:28 +10:00
parent 14e1e7e7c1
commit 5e17e5d275

View File

@ -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);
});
}