Skip to content

Commit

Permalink
Merge pull request hashcat#75 from mladejir/random_rule_bug
Browse files Browse the repository at this point in the history
Fixed bug in generating random rule in src/cpu_rules.c
  • Loading branch information
jsteube authored Oct 24, 2023
2 parents 7865adc + 86a354f commit a814ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpu_rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ int generate_random_rule (char rule_buf[RP_RULE_BUFSIZ], uint32_t rp_gen_func_mi
p1 = get_random_num (0, sizeof (grp_pos));
rule_buf[rule_pos++] = grp_pos[p1];
p2 = get_random_num (1, sizeof (grp_pos));
rule_buf[rule_pos++] = grp_pos[p1];
rule_buf[rule_pos++] = grp_pos[p2];
p3 = get_random_num (0, sizeof (grp_pos));
rule_buf[rule_pos++] = grp_pos[p3];
break;
Expand Down

0 comments on commit a814ceb

Please sign in to comment.