Commit Diff


commit - d48e440a722cb56fd3c2996d2d3c87ce7f471042
commit + 922540306e968b3c64150e771d0773273535b661
blob - 31c6fb41fb9272f5b4abd5e6713b12d359fb5387
blob + df10918893348a4a1ef4205938e00db49eddb6b7
--- src/tool/tool.c
+++ 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)];