Skip to content

Commit 4880f67

Browse files
committed
chore: make the BIT_PAIRS_DIFF array static.
1 parent 21a0bda commit 4880f67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/src/modules/elf/tlsh/helper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const fn compute_bit_pairs_diff() -> [[usize; 256]; 256] {
7575
a
7676
}
7777

78-
const BIT_PAIRS_DIFF: [[usize; 256]; 256] = compute_bit_pairs_diff();
78+
static BIT_PAIRS_DIFF: [[usize; 256]; 256] = compute_bit_pairs_diff();
7979

8080
pub(crate) fn pearson_hash(salt: u8, ii: u8, jj: u8, kk: u8) -> u8 {
8181
let mut h = 0;

0 commit comments

Comments
 (0)