aboutsummaryrefslogtreecommitdiffstats
path: root/src/utility/random.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/utility/random.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utility/random.cpp b/src/utility/random.cpp
index d12989b8..20719ad6 100644
--- a/src/utility/random.cpp
+++ b/src/utility/random.cpp
@@ -56,13 +56,13 @@ unsigned int random::getProcess()
}
-const string random::getString(const int length, const string& randomChars)
+const string random::getString(const string::size_type length, const string& randomChars)
{
string res;
res.resize(length);
- const unsigned int x = randomChars.length();
- int c = 0;
+ const unsigned int x = static_cast <unsigned int>(randomChars.length());
+ string::size_type c = 0;
while (c < length)
{