Skip to content

Commit

Permalink
Make string anonymization function match previous implementation (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Mar 18, 2024
1 parent 6125928 commit 80ab006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rs/canister/impl/src/model/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ fn anonymize(value: &str, salt: [u8; 32]) -> String {
let hash: [u8; 32] = hasher.finalize().into();

let mut string = String::with_capacity(32);
for byte in &hash[0..16] {
for byte in &hash[16..] {
write!(string, "{byte:02x}").unwrap();
}
string
Expand Down

0 comments on commit 80ab006

Please sign in to comment.