mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-17 14:46:13 +03:00
Fix loop into getkey
This commit is contained in:
parent
51067c23dd
commit
0ed1a1b8b4
@ -132,7 +132,7 @@ unsigned char *getkey(apr_pool_t *mp) {
|
|||||||
|
|
||||||
srand((unsigned int) time(0));
|
srand((unsigned int) time(0));
|
||||||
while(length--) {
|
while(length--) {
|
||||||
output[length-1] = (rand() % 94 + 33);
|
output[length] = (rand() % 94 + 33);
|
||||||
srand(rand());
|
srand(rand());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user