mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-06 04:51:40 -07:00
commit
08fc0fb2e2
1 changed files with 1 additions and 10 deletions
11
bfg.c
11
bfg.c
|
@ -202,14 +202,6 @@ uint64_t bf_get_pcount() {
|
|||
return foo;
|
||||
}
|
||||
|
||||
|
||||
int accu(int x) {
|
||||
int a = 0, b;
|
||||
for(b=1; b<x; ++b)
|
||||
a+=b;
|
||||
return a;
|
||||
}
|
||||
|
||||
char *bf_next(_Bool rainy) {
|
||||
int32_t i, pos = bf_options.current - 1;
|
||||
|
||||
|
@ -228,9 +220,8 @@ char *bf_next(_Bool rainy) {
|
|||
for(i=1; i<bf_options.current; ++i) {
|
||||
bf_options.ptr[i] = bf_options.crs[(bf_options.state[i] + bf_options.rain) % bf_options.crs_len];
|
||||
bf_options.rain -= bf_options.rain / bf_options.crs_len;
|
||||
bf_options.gcounter+=i;
|
||||
}
|
||||
bf_options.gcounter -= accu(bf_options.current)-1;
|
||||
bf_options.gcounter++;
|
||||
}
|
||||
else
|
||||
for(i=0; i<bf_options.current; ++i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue