mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Fix loop into getkey
This commit is contained in:
parent
24b5c96c20
commit
563017fce6
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user