summaryrefslogtreecommitdiff
path: root/src/tools/StringTools.cpp
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2023-05-11 00:22:01 +0400
committerGitHub <noreply@github.com>2023-05-11 00:22:01 +0400
commite503416d66b83810a5ae253d4e82c1bc652b38de (patch)
tree095530f03bccfdbaff9526548586504316760887 /src/tools/StringTools.cpp
parent49f525ed18ce4a2e0100824452fb35c100ed270a (diff)
parenta24ab2cd92bbeddb9c1780cdaae6d60745144f8c (diff)
Merge pull request #271 from r4d1sh/msvc
Fix a few warnings reported by MSVC compiler
Diffstat (limited to 'src/tools/StringTools.cpp')
-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 3e5e6c4..cc5436f 100644
--- a/src/tools/StringTools.cpp
+++ b/src/tools/StringTools.cpp
@@ -63,7 +63,7 @@ string generateRandomString(std::size_t length) {
random_device randomDevice;
mt19937 randomSeed(randomDevice());
- uniform_int_distribution<int> generator(0, charsLen - 1);
+ uniform_int_distribution<std::size_t> generator(0, charsLen - 1);
for (std::size_t i = 0; i < length; ++i) {
result += chars[generator(randomSeed)];