summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorymuv <yuramuv@gmail.com>2017-01-23 01:10:59 +0200
committerymuv <yuramuv@gmail.com>2017-01-23 01:10:59 +0200
commit605af0c461c26d19611ae7e456b6baddf91c6bc1 (patch)
treebc0b88fb496467f67d560dc859b9b76efcfd5306 /src/tools
parent01688d68293972e66611014c203218d37b940dc2 (diff)
Fix -Wsign-compare and control reaches end of non-void function
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/StringTools.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/StringTools.cpp b/src/tools/StringTools.cpp
index a48b4eb..ab7da46 100644
--- a/src/tools/StringTools.cpp
+++ b/src/tools/StringTools.cpp
@@ -80,7 +80,7 @@ string generateRandomString(size_t length) {
static const string chars("qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890-=[]\\;',./!@#$%^&*()_+{}|:\"<>?`~");
static const size_t charsLen = chars.length();
string result;
- for (int i = 0; i < length; ++i) {
+ for (size_t i = 0; i < length; ++i) {
result += chars[rand() % charsLen];
}
return result;