fix
This commit is contained in:
2
3rd_party/cpp-httplib/httplib.h
vendored
2
3rd_party/cpp-httplib/httplib.h
vendored
@ -5396,7 +5396,7 @@ inline std::string random_string(size_t length) {
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
"abcdefghijklmnopqrstuvwxyz";
|
||||
const size_t max_index = (sizeof(charset) - 1);
|
||||
return charset[static_cast<size_t>(std::rand()) % max_index];
|
||||
return charset[repertory_rand<std::size_t>() % max_index];
|
||||
};
|
||||
std::string str(length, 0);
|
||||
std::generate_n(str.begin(), length, randchar);
|
||||
|
Reference in New Issue
Block a user