httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/modules/mappers mod_rewrite.c
Date Tue, 11 Jun 2002 14:43:04 GMT
trawick     2002/06/11 07:43:04

  Modified:    .        CHANGES
               modules/mappers mod_rewrite.c
  Log:
  Fix some casting in mod_rewrite which broke random maps.
  
  PR:           9770
  Submitted by: Allan Edwards, Greg Ames, Jeff Trawick
  
  Revision  Changes    Path
  1.822     +2 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.821
  retrieving revision 1.822
  diff -u -r1.821 -r1.822
  --- CHANGES	11 Jun 2002 05:36:04 -0000	1.821
  +++ CHANGES	11 Jun 2002 14:43:03 -0000	1.822
  @@ -1,6 +1,8 @@
   
   Changes with Apache 2.0.38
   
  +  *) Fix some casting in mod_rewrite which broke random maps.
  +     PR 9770  [Allan Edwards, Greg Ames, Jeff Trawick]
   
   Changes with Apache 2.0.37
   
  
  
  
  1.122     +1 -1      httpd-2.0/modules/mappers/mod_rewrite.c
  
  Index: mod_rewrite.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_rewrite.c,v
  retrieving revision 1.121
  retrieving revision 1.122
  diff -u -r1.121 -r1.122
  --- mod_rewrite.c	9 Jun 2002 03:44:03 -0000	1.121
  +++ mod_rewrite.c	11 Jun 2002 14:43:04 -0000	1.122
  @@ -3088,7 +3088,7 @@
        * result. Doing an integer modulus would only use the lower-order bits
        * which may not be as uniformly random.
        */
  -    return (int)((double)(rand() % RAND_MAX) / RAND_MAX) * (h - l + 1) + l;
  +    return (int)(((double)(rand() % RAND_MAX) / RAND_MAX) * (h - l + 1) + l);
   }
   
   static char *select_random_value_part(request_rec *r, char *value)
  
  
  

Mime
View raw message