diff --git a/tdutils/td/utils/tests.h b/tdutils/td/utils/tests.h index 68f9dd24..d6730083 100644 --- a/tdutils/td/utils/tests.h +++ b/tdutils/td/utils/tests.h @@ -110,8 +110,8 @@ class Stage { std::atomic value_{0}; }; -inline string rand_string(char from, char to, int len) { - string res(len, 0); +inline string rand_string(int from, int to, size_t len) { + string res(len, '\0'); for (auto &c : res) { c = static_cast(Random::fast(from, to)); }