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)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5459 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-04-13 04:47:39 +00:00
parent 18e2c2e468
commit b052fe894b
5 changed files with 8 additions and 8 deletions

View File

@@ -106,7 +106,6 @@ int unload_module(void)
int load_module(void)
{
srandom((unsigned int)getpid() + (unsigned int)time(NULL));
return ast_register_application(app_random, random_exec, random_synopsis, random_descrip);
}