From 9723c827f50ef0f66d118f5fa7ecb5d6b0a3d634 Mon Sep 17 00:00:00 2001 From: Greg Fitzgerald Date: Thu, 15 Feb 2018 11:29:09 -0700 Subject: [PATCH] mut hash -> end_hash --- src/event.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/event.rs b/src/event.rs index a1a24d718..2b8d4b228 100644 --- a/src/event.rs +++ b/src/event.rs @@ -49,13 +49,13 @@ impl Event { pub fn run(start_hash: u64, num_hashes: u64) -> Self { use std::collections::hash_map::DefaultHasher; use std::hash::{Hash, Hasher}; - let mut hash = start_hash; + let mut end_hash = start_hash; let mut hasher = DefaultHasher::new(); for _ in 0..num_hashes { - hash.hash(&mut hasher); - hash = hasher.finish(); + end_hash.hash(&mut hasher); + end_hash = hasher.finish(); } - Self::new(num_hashes, hash) + Self::new(num_hashes, end_hash) } /// Verifies self.end_hash is the result of hashing a 'start_hash' 'self.num_hashes' times. ///