mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-23 07:08:19 +00:00
Fix random_number() and -m 12 contraints
This commit is contained in:
parent
e8029cdc5c
commit
e137794555
@ -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
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user