From b2bc4eda4854649d630425446e66642ab9327efc Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 5 Apr 2006 22:51:31 +0000 Subject: [PATCH] type cast git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1055 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_stun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));