aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_random.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-13 04:47:39 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-13 04:47:39 +0000
commit7da33e49f47b232b1f8c5f8099541629fbc1e2ea (patch)
treee1aeac46df33ad6eda3039636b8939aaf48d71a4 /apps/app_random.c
parent0ec2431168fa927330180da2c8511cf740ade3f0 (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: http://svn.digium.com/svn/asterisk/trunk@5459 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_random.c')
-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);
}