PR: 9770
Submitted by: Allan Edwards, Greg Ames, Jeff Trawick
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95611
13f79535-47bb-0310-9956-
ffa450edef68
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
* 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)