mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-02 19:19:17 +00:00
Change hash function to blake2 for partition keys based on strings
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ pub trait PartitionKey {
|
||||
|
||||
impl PartitionKey for String {
|
||||
fn hash(&self) -> Hash {
|
||||
sha256sum(self.as_bytes())
|
||||
blake2sum(self.as_bytes())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user