Add sha256 hash and ordering.

This commit is contained in:
Michael Mikovsky
2026-05-31 13:22:02 -06:00
parent 0b11f8609e
commit b2e2523860
7 changed files with 234 additions and 67 deletions
+2 -4
View File
@@ -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)
}
}