[asterisk-bugs] [Asterisk 0013061]: random appears to be broken

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Jul 12 02:11:23 CDT 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.digium.com/view.php?id=13061 
====================================================================== 
Reported By:                danpwi
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13061
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.20.1 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             07-12-2008 02:11 CDT
Last Modified:              07-12-2008 02:11 CDT
====================================================================== 
Summary:                    random appears to be broken
Description: 
As far as I can tell, random() always returns false.  To reproduce:

context ael-randtest {
   123 => {
      one=0; two=0;
      for(x=0; ${x} < 100; x=${x} + 1) {
         random(50)
            one=${one} + 1;
         else
            two=${two} + 1;
      }
      Verbose(0,${one} ${two});
   }
}

and then 'originate Local/123 at ael-randtest application noop' from the CLI.
 It always outputs '0 100' as opposed to the expected (approx) 50 50.
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-12-08 02:11  danpwi         SVN Branch (only for SVN checkou => N/A          
  
======================================================================




More information about the asterisk-bugs mailing list