[asterisk-commits] trunk r21038 - in /trunk: ./ apps/app_random.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Apr 17 23:29:32 MST 2006
Author: tilghman
Date: Tue Apr 18 01:29:30 2006
New Revision: 21038
URL: http://svn.digium.com/view/asterisk?rev=21038&view=rev
Log:
Merged revisions 21037 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r21037 | tilghman | 2006-04-18 01:26:04 -0500 (Tue, 18 Apr 2006) | 2 lines
Bug 6984 - off by one error in Random()
........
Modified:
trunk/ (props changed)
trunk/apps/app_random.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.
Modified: trunk/apps/app_random.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_random.c?rev=21038&r1=21037&r2=21038&view=diff
==============================================================================
--- trunk/apps/app_random.c (original)
+++ trunk/apps/app_random.c Tue Apr 18 01:29:30 2006
@@ -82,10 +82,10 @@
if (!deprecated) {
deprecated = 1;
- ast_log(LOG_WARNING, "Random is deprecated in Asterisk 1.3 or later. Replace with GotoIf($[${RAND(0,99)} + %d >= 100]?%s)\n", probint, s);
+ ast_log(LOG_WARNING, "Random is deprecated in Asterisk 1.4. Replace with GotoIf($[${RAND(0,99)} + %d >= 100]?%s)\n", probint, s);
}
- if ((ast_random() % 100) + probint > 100) {
+ if ((ast_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",
More information about the asterisk-commits
mailing list