mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 00:00:44 +00:00
type cast
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1055 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
650ae09f06
commit
b2bc4eda48
@ -99,7 +99,7 @@ SWITCH_DECLARE(void) switch_stun_random_string(char *buf, uint16_t len, char *se
|
|||||||
|
|
||||||
max = (int)strlen(set) - 1;
|
max = (int)strlen(set) - 1;
|
||||||
|
|
||||||
srand(apr_time_now());
|
srand((unsigned int)apr_time_now());
|
||||||
|
|
||||||
for(x = 0; x < len; x++) {
|
for(x = 0; x < len; x++) {
|
||||||
int j = 1+(int)(max*1.0*rand()/(RAND_MAX+1.0));
|
int j = 1+(int)(max*1.0*rand()/(RAND_MAX+1.0));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user