mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-17 17:17:47 +00:00
rename hash() to sha256sum(), we might want to change it at some places
This commit is contained in:
+1
-1
@@ -77,7 +77,7 @@ impl FixedBytes32 {
|
||||
pub type UUID = FixedBytes32;
|
||||
pub type Hash = FixedBytes32;
|
||||
|
||||
pub fn hash(data: &[u8]) -> Hash {
|
||||
pub fn sha256sum(data: &[u8]) -> Hash {
|
||||
let mut hasher = Sha256::new();
|
||||
hasher.input(data);
|
||||
let mut hash = [0u8; 32];
|
||||
|
||||
Reference in New Issue
Block a user