mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-12 12:37:05 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1051 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
b71c36b138
commit
df621b1a84
2 files changed
+14
-1
No files matched your search
+3
-1
@@ -98,7 +98,9 @@ SWITCH_DECLARE(void) switch_stun_random_string(char *buf, uint16_t len, char *se
|
||||
}
|
||||
|
||||
max = (int)strlen(set) - 1;
|
||||
|
||||
|
||||
srand(apr_time_now());
|
||||
|
||||
for(x = 0; x < len; x++) {
|
||||
int j = 1+(int)(max*1.0*rand()/(RAND_MAX+1.0));
|
||||
buf[x] = set[j];
|
||||
|
||||
Reference in new issue
Block a user