diff --git a/Util/string_util.hpp b/Util/string_util.hpp index 5803a3c02..08af55483 100644 --- a/Util/string_util.hpp +++ b/Util/string_util.hpp @@ -30,8 +30,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include -#include #include + +#include #include #include @@ -146,20 +147,4 @@ inline std::size_t URIDecode(const std::string &input, std::string &output) inline std::size_t URIDecodeInPlace(std::string &URI) { return URIDecode(URI, URI); } -inline std::string GetRandomString() -{ - std::string s; - s.resize(128); - static const char alphanum[] = "0123456789" - "ABCDEFGHIJKLMNOPQRSTUVWXYZ" - "abcdefghijklmnopqrstuvwxyz"; - - for (std::size_t i = 0; i < 127; ++i) - { - s[i] = alphanum[rand() % (sizeof(alphanum) - 1)]; - } - s[127] = 0; - return s; -} - #endif // STRING_UTIL_HPP