about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tool/tool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool/tool.c b/src/tool/tool.c
index 31c6fb41..df109188 100644
--- a/src/tool/tool.c
+++ b/src/tool/tool.c
@@ -147,7 +147,7 @@ ngt_RandomStr( char *String, const size_t len)
 
 	struct timeval t;
 	gettimeofday(&t, NULL);
-	srand(t.tv_usec * t.tv_sec);
+	srand((unsigned)(t.tv_usec * t.tv_sec));
 
 	for (size_t i = 0; i < len; ++i) {
 		String[i] = chars[rand() % (sizeof(chars) - 1)];