mirror of
https://git.deuxfleurs.fr/Deuxfleurs/garage.git
synced 2024-12-22 15:16:34 +00:00
Change hash function to blake2 for partition keys based on strings
This commit is contained in:
parent
f319a7d374
commit
2afd2c81ba
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ pub trait PartitionKey {
|
|||
|
||||
impl PartitionKey for String {
|
||||
fn hash(&self) -> Hash {
|
||||
sha256sum(self.as_bytes())
|
||||
blake2sum(self.as_bytes())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue