Rename canonical_hash to `hash

This commit is contained in:
Paul Hauner
2019-01-25 17:40:22 +11:00
parent 73d86bcc3b
commit f9acc42aca
11 changed files with 22 additions and 27 deletions

View File

@@ -45,7 +45,7 @@ mod tests {
use std::{fs::File, io::prelude::*, path::PathBuf};
use super::{hashing::canonical_hash, *};
use super::{hashing::hash, *};
#[test]
fn test_shuffling() {
@@ -70,7 +70,7 @@ mod tests {
let seed_bytes = test_case["seed"].as_str().unwrap().as_bytes();
let seed = if seed_bytes.len() > 0 {
canonical_hash(seed_bytes)
hash(seed_bytes)
} else {
vec![]
};