mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-08 22:38:01 -06:00
Add sha256 hash and ordering.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
use unshell::hash;
|
||||
|
||||
macro_rules! hashtest {
|
||||
($input:tt) => {
|
||||
($input, hash($input))
|
||||
($input, unshell::hash_32!($input))
|
||||
};
|
||||
}
|
||||
|
||||
@@ -17,6 +15,6 @@ const MAP: [(&str, u32); 6] = [
|
||||
|
||||
pub fn main() {
|
||||
for (a, b) in MAP {
|
||||
println!("unshell::hash(\"{}\") = {}", a, b)
|
||||
println!("unshell::hash_32!(\"{}\") = {}", a, b)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user