X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Ftool%2Ftool.c;h=df10918893348a4a1ef4205938e00db49eddb6b7;hp=31c6fb41fb9272f5b4abd5e6713b12d359fb5387;hb=922540306e968b3c64150e771d0773273535b661;hpb=d48e440a722cb56fd3c2996d2d3c87ce7f471042 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)];