From: Automerge script Date: Tue, 18 Apr 2006 07:06:21 +0000 (+0000) Subject: automerge commit X-Git-Tag: 1.2.8-netsec~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccc668b5d65830703039abc68b28d721d98e524a;p=thirdparty%2Fasterisk.git automerge commit git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@21076 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_random.c b/apps/app_random.c index 57ef4dd323..cab34f31e7 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",