Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
chore: upgrade hash32 and silence miri false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalpharush committed Oct 17, 2024
1 parent e1a9c32 commit 80673cb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ arbitrary = { version = "1.0", optional = true, features = ["derive"] }
byteorder = "1.2"
combine = "3.8.1"
gdbstub = { version = "0.6.2", optional = true }
hash32 = "0.2.0"
hash32 = "0.3.1"
log = "0.4.2"
rand = { version = "0.8.5", features = ["small_rng"]}
rustc-demangle = "0.1"
Expand Down
6 changes: 3 additions & 3 deletions src/ebpf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
//! the list of the operation codes: <https://github.com/iovisor/bpf-docs/blob/master/eBPF.md>
use byteorder::{ByteOrder, LittleEndian};
use hash32::{Hash, Hasher, Murmur3Hasher};
use std::fmt;
use hash32::{Hasher, Murmur3Hasher};
use std::{fmt, hash::Hash};

/// Solana BPF version flag
pub const EF_SBPF_V2: u32 = 0x20;
Expand Down Expand Up @@ -656,5 +656,5 @@ pub fn augment_lddw_unchecked(prog: &[u8], insn: &mut Insn) {
pub fn hash_symbol_name(name: &[u8]) -> u32 {
let mut hasher = Murmur3Hasher::default();
Hash::hash_slice(name, &mut hasher);
hasher.finish()
hasher.finish32()
}

0 comments on commit 80673cb

Please sign in to comment.