12 inline std::string
uid (std::size_t len = 8)
14 static const auto digits =
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
15 static const int N = std::strlen(digits);
17 std::string id(len,
' ');
18 for (std::size_t i = 0; i < len; ++i)
19 id[i] = digits[std::rand()%N];
Definition: datacollectorinterface.hh:9
std::string uid(std::size_t len=8)
Definition: uid.hh:12