1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 16:18:09 +00:00

Fix random_number() and -m 12 contraints

This commit is contained in:
jsteube 2018-12-28 12:30:57 +01:00
parent e8029cdc5c
commit e137794555
2 changed files with 2 additions and 2 deletions

View File

@ -406,7 +406,7 @@ sub random_number
return if $min > $max;
return int ((rand ($max - $min)) + $min);
return int ((rand (($max + 1) - $min)) + $min);
}
sub random_bytes

View File

@ -10,7 +10,7 @@ use warnings;
use Digest::MD5 qw (md5_hex);
sub module_constraints { [[0, 256], [0, 256], [0, 55], [0, 55], [0, 55]] }
sub module_constraints { [[0, 256], [0, 32], [0, 55], [0, 32], [0, 55]] }
sub module_generate_hash
{