diff --git a/src/switch_stun.c b/src/switch_stun.c index 34e10f818a..e72f246db4 100644 --- a/src/switch_stun.c +++ b/src/switch_stun.c @@ -99,7 +99,7 @@ SWITCH_DECLARE(void) switch_stun_random_string(char *buf, uint16_t len, char *se max = (int)strlen(set) - 1; - srand(apr_time_now()); + srand((unsigned int)apr_time_now()); for(x = 0; x < len; x++) { int j = 1+(int)(max*1.0*rand()/(RAND_MAX+1.0));