[Asterisk-cvs] asterisk/pbx pbx_dundi.c,1.30,1.31

kpfleming at lists.digium.com kpfleming at lists.digium.com
Tue Apr 12 23:55:54 CDT 2005


Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/tmp/cvs-serv6958/pbx

Modified Files:
	pbx_dundi.c 
Log Message:
ensure that the random number generator(s) are always seeded with a different value during Asterisk startup
don't reinitialize random number generators in other modules
(bug #4017)


Index: pbx_dundi.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_dundi.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- pbx_dundi.c	4 Mar 2005 06:47:24 -0000	1.30
+++ pbx_dundi.c	13 Apr 2005 04:47:38 -0000	1.31
@@ -4632,9 +4632,6 @@
 	dundi_set_output(dundi_debug_output);
 	dundi_set_error(dundi_error_output);
 	
-	/* Seed random number generator */
-	srand(time(NULL));
-	
 	sin.sin_family = AF_INET;
 	sin.sin_port = ntohs(DUNDI_PORT);
 	sin.sin_addr.s_addr = INADDR_ANY;




More information about the svn-commits mailing list