httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 7234] New: - RewriteMap broken
Date Tue, 19 Mar 2002 11:29:34 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7234>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7234

RewriteMap broken

           Summary: RewriteMap broken
           Product: Apache httpd-1.3
           Version: 1.3.23
          Platform: All
        OS/Version: FreeBSD
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Modules
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: dard@mail.ru


RewriteMap directive seems to be broken when using "Randomized Plain Text" 
option. 
apache_1.3.23/src/modules/standard/mod_rewrite.c, 3017
return (int)((double)(rand() % RAND_MAX) / RAND_MAX) * (h - l + 1) + l;
rather then
return ((double)(rand() % RAND_MAX) / RAND_MAX) * (h - l + 1) + l;
causes that the only value is everytime selected from text file is the first 
value, so randomize not working.

Mime
View raw message