[Asterisk-cvs] asterisk/apps app_random.c,1.2,1.2.2.1
russell at lists.digium.com
russell at lists.digium.com
Sun May 15 22:59:36 CDT 2005
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv20174/apps
Modified Files:
Tag: v1-0
app_random.c
Log Message:
only initialize random number generators in one place (bug #4017)
Index: app_random.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_random.c,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- app_random.c 1 Mar 2004 20:44:48 -0000 1.2
+++ app_random.c 16 May 2005 03:04:58 -0000 1.2.2.1
@@ -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);
}
More information about the svn-commits
mailing list