summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-04-13 04:47:39 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-04-13 04:47:39 +0000
commitb052fe894bbcece8d93cc55327cf99455cc773cf (patch)
treee1aeac46df33ad6eda3039636b8939aaf48d71a4 /apps
parent18e2c2e4683c15e6dd7926f1d0c64ffadd42f86b (diff)
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
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_random.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/apps/app_random.c b/apps/app_random.c
index c47212a27..f8558a3b4 100755
--- a/apps/app_random.c
+++ b/apps/app_random.c
@@ -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);
}