1#[cfg(feature = "v3")]
2pub(crate) fn hash(ns: &[u8], src: &[u8]) -> [u8; 16] {
3 use md5::{Digest, Md5};
4
5 let mut hasher = Md5::new();
6
7 hasher.update(ns);
8 hasher.update(src);
9
10 let mut bytes = [0; 16];
11 bytes.copy_from_slice(&hasher.finalize()[..16]);
12
13 bytes
14}