use external crate siphasher
Because std:#️⃣:SipHasher is deprecated.
This commit is contained in:
@ -16,6 +16,8 @@ use nix::sys::stat::Mode;
|
||||
use nix::errno::Errno;
|
||||
use nix::sys::stat::FileStat;
|
||||
|
||||
use siphasher::sip::SipHasher24;
|
||||
|
||||
const FILE_COPY_BUFFER_SIZE: usize = 1024*1024;
|
||||
|
||||
pub struct CaTarEncoder<W: Write> {
|
||||
@ -330,7 +332,7 @@ impl <W: Write> CaTarEncoder<W> {
|
||||
fn compute_goodby_hash(name: &CStr) -> u64 {
|
||||
|
||||
use std::hash::Hasher;
|
||||
let mut hasher = std::hash::SipHasher::new_with_keys(0x8574442b0f1d84b3, 0x2736ed30d1c22ec1);
|
||||
let mut hasher = SipHasher24::new_with_keys(0x8574442b0f1d84b3, 0x2736ed30d1c22ec1);
|
||||
hasher.write(name.to_bytes());
|
||||
hasher.finish()
|
||||
}
|
||||
|
Reference in New Issue
Block a user