mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-23 00:28:11 +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 if $min > $max;
|
||||||
|
|
||||||
return int ((rand ($max - $min)) + $min);
|
return int ((rand (($max + 1) - $min)) + $min);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub random_bytes
|
sub random_bytes
|
||||||
|
@ -10,7 +10,7 @@ use warnings;
|
|||||||
|
|
||||||
use Digest::MD5 qw (md5_hex);
|
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
|
sub module_generate_hash
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user