From: Anthony Minessale Date: Tue, 31 Jan 2012 16:03:28 +0000 (-0600) Subject: remove srand call to get more random strings X-Git-Tag: v1.2-rc1~19^2~1^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ba52c08274485bcd267d3f6563c828ccd567232;p=thirdparty%2Ffreeswitch.git remove srand call to get more random strings --- diff --git a/src/switch_stun.c b/src/switch_stun.c index 0045feb557..9ed2f98d79 100644 --- a/src/switch_stun.c +++ b/src/switch_stun.c @@ -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];