how to creatae a name made up of random chars with random length between 8 and 16 in c++ code example
Example: random string c++
#include <string>
string gen_random(int len) {
string s;
static const char alphanum[] =
"0123456789"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz";
for (int i = 0; i < len; ++i) {
s += alphanum[rand() % (sizeof(alphanum) - 1)];
}
return s;
}