diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-18 07:06:21 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-18 07:06:21 +0000 |
commit | 23995acafddbddafee23c09f2e115b7c11cc7f05 (patch) | |
tree | fd9e78e2210206ee187e0e1bfce7068999a81353 /apps/app_random.c | |
parent | 70e94d1733eaf522c1bd7dec02c30adf2f7e76fa (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@21076 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_random.c')
-rw-r--r-- | apps/app_random.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_random.c b/apps/app_random.c index 57ef4dd32..cab34f31e 100644 --- a/apps/app_random.c +++ b/apps/app_random.c @@ -82,7 +82,7 @@ static int random_exec(struct ast_channel *chan, void *data) if ((!prob) || (sscanf(prob, "%d", &probint) != 1)) probint = 0; - if ((random() % 100) + probint > 100) { + if ((random() % 100) + probint >= 100) { res = ast_parseable_goto(chan, s); if (option_verbose > 2) ast_verbose( VERBOSE_PREFIX_3 "Random branches to (%s,%s,%d)\n", |