@@ -32,7 +32,7 @@ int main (int argc, char **argv) {
32
32
// first few, are 'special'. These are the most important, since we have some formats
33
33
// that only use a very FEW value.
34
34
char *pass;
35
- unsigned tot=0 , i, len= 4 , cnt=0 ;
35
+ unsigned tot=0 , i, len, cnt=0 ;
36
36
37
37
unsigned long init[4 ]={0x123 , 0x234 , 0x345 , 0x456 }, length=4 ;
38
38
init_by_array (init, length);
@@ -49,23 +49,26 @@ int main (int argc, char **argv) {
49
49
starts[i] = val;
50
50
}
51
51
52
- // grow from 4 to 54
53
- for (i = 0 ; i < 10 ; ++i) {
54
- pass = gen_next (len , tot);
52
+ // grow from 5 to 85
53
+ for (i = 0 ; i < 16 ; ++i) {
54
+ pass = gen_next (i* 5 + 5 , tot);
55
55
print_if_meet_criteria (pass, cnt);
56
- len += 5 ;
57
56
}
58
57
print_if_meet_criteria (" " , cnt);
59
58
pass = gen_next (9 , tot);
60
59
print_if_meet_criteria (pass, cnt);
61
60
print_if_meet_criteria (" p" , cnt);
62
-
63
- // zig-zag lengths 4-56 9-45. ....
61
+ pass = gen_next (16 , tot);
62
+ print_if_meet_criteria (" 123" , cnt);
63
+ pass = gen_next (18 , tot);
64
+ print_if_meet_criteria (pass, cnt);
65
+ print_if_meet_criteria (" 32" , cnt);
66
+ // zig-zag lengths 4-125 9-120. ....
64
67
len = 4 ;
65
- for (i = 0 ; i < 10 ; ++i) {
68
+ for (i = 0 ; i < 15 ; ++i) {
66
69
pass = gen_next (len, tot);
67
70
print_if_meet_criteria (pass, cnt);
68
- pass = gen_next (60 -len, tot);
71
+ pass = gen_next (129 -len, tot);
69
72
print_if_meet_criteria (pass, cnt);
70
73
len += 5 ;
71
74
}
@@ -74,6 +77,10 @@ int main (int argc, char **argv) {
74
77
pass = gen_next (len, tot);
75
78
print_if_meet_criteria (pass, cnt);
76
79
}
80
+ for (i = 12 ; i < 134 ; i++) {
81
+ pass = gen_next (i, tot);
82
+ print_if_meet_criteria (pass, cnt);
83
+ }
77
84
for (i = 0 ; i < 400 ; i+=3 ) {
78
85
pass = gen_next (4 +rnd (130 ), tot);
79
86
print_if_meet_criteria (pass, cnt);
0 commit comments