mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fix loop into getkey
This commit is contained in:
@@ -132,7 +132,7 @@ unsigned char *getkey(apr_pool_t *mp) {
|
||||
|
||||
srand((unsigned int) time(0));
|
||||
while(length--) {
|
||||
output[length-1] = (rand() % 94 + 33);
|
||||
output[length] = (rand() % 94 + 33);
|
||||
srand(rand());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user