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

Modified Files:
        app_random.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: app_random.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_random.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- app_random.c        21 Jan 2005 07:06:24 -0000      1.3
+++ app_random.c        13 Apr 2005 04:47:38 -0000      1.4
@@ -106,7 +106,6 @@
 
 int load_module(void)
 {
-       srandom((unsigned int)getpid() + (unsigned int)time(NULL));
        return ast_register_application(app_random, random_exec, 
random_synopsis, random_descrip);
 }
 

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to