Skip to content

Commit ff813bf

Browse files
committed
Fix #863
1 parent cf475bc commit ff813bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3775,7 +3775,7 @@ inline std::string random_string(size_t length) {
37753775
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
37763776
"abcdefghijklmnopqrstuvwxyz";
37773777
const size_t max_index = (sizeof(charset) - 1);
3778-
return charset[static_cast<size_t>(rand()) % max_index];
3778+
return charset[static_cast<size_t>(std::rand()) % max_index];
37793779
};
37803780
std::string str(length, 0);
37813781
std::generate_n(str.begin(), length, randchar);

0 commit comments

Comments
 (0)