]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
remove srand call to get more random strings
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 31 Jan 2012 16:03:28 +0000 (10:03 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 31 Jan 2012 16:03:28 +0000 (10:03 -0600)
src/switch_stun.c

index 0045feb557e96f92cb5943fbd5003daf30729312..9ed2f98d79904d422950d54688f1654ae30ae42e 100644 (file)
@@ -105,8 +105,6 @@ SWITCH_DECLARE(void) switch_stun_random_string(char *buf, uint16_t len, char *se
 
        max = (int) strlen(set);
 
-       srand((unsigned int) switch_micro_time_now());
-
        for (x = 0; x < len; x++) {
                int j = (int) (max * 1.0 * rand() / (RAND_MAX + 1.0));
                buf[x] = set[j];