mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-12 18:40:23 +08:00
phash.ph: remove some stale code
Remove old randomization code which is no longer used.
This commit is contained in:
parent
757dfad900
commit
e3e9e9fa0d
@ -141,14 +141,6 @@ sub gen_hash_n($$$) {
|
||||
return ($n, $sv, \@g);
|
||||
}
|
||||
|
||||
#
|
||||
# Generate a random prehash vector
|
||||
#
|
||||
sub prehash_vector()
|
||||
{
|
||||
return [myrand(32), myrand(32), myrand(32), myrand(32)];
|
||||
}
|
||||
|
||||
#
|
||||
# Driver for generating the function
|
||||
#
|
||||
@ -176,7 +168,6 @@ sub gen_perfect_hash($) {
|
||||
print STDERR "Trying n = $n...\n";
|
||||
for ($j = 0; $j < $maxj; $j++) {
|
||||
$sv = $random_sv_vectors[$j];
|
||||
# $sv = prehash_vector();
|
||||
@hashinfo = gen_hash_n($n, $sv, $href);
|
||||
return @hashinfo if (defined(@hashinfo));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user