summaryrefslogtreecommitdiff
path: root/src/tools/StringTools.cpp
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2021-04-06 00:58:34 +0300
committerGitHub <noreply@github.com>2021-04-06 00:58:34 +0300
commita0d31e277f0b62d24b5ee1777c07c7c942b92e1b (patch)
tree882ea522bf30ca36749a0456176dc16aa372ae51 /src/tools/StringTools.cpp
parentf2d7dc110d3ba37914298bd073500396fcf93967 (diff)
parenta7c75fdc8177d2fa6ed13293945a7d80d32cdbad (diff)
Merge pull request #165 from MPSMPS/master
Fixes https://github.com/reo7sp/tgbot-cpp/issues/162
Diffstat (limited to 'src/tools/StringTools.cpp')
-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;