summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorMathias Schnarrenberger <mathias.schnarrenberger@web.de>2021-04-05 14:11:01 +0200
committerMathias Schnarrenberger <mathias.schnarrenberger@web.de>2021-04-05 14:11:01 +0200
commitef7ed37e3ebc6f038e13f0157e8c46d1c2df76a8 (patch)
tree480f13ffc21862d9df20021f44b215a0c6a0c5cd /src/tools
parentf2d7dc110d3ba37914298bd073500396fcf93967 (diff)
Fixes https://github.com/reo7sp/tgbot-cpp/issues/162
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/StringTools.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/StringTools.cpp b/src/tools/StringTools.cpp
index 8b8f4da..653047c 100644
--- a/src/tools/StringTools.cpp
+++ b/src/tools/StringTools.cpp
@@ -56,7 +56,8 @@ void split(const string& str, char delimiter, vector<string>& dest) {
}
string generateRandomString(std::size_t length) {
- static const string chars("qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890-=[]\\;',./!@#$%^&*()_+{}|:\"<>?`~");
+ static const string chars("qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890-=[]\\',./!@#$%^&*()_+{}|:\"<>?`~");
+
static const std::size_t charsLen = chars.length();
string result;