From 0bdd31cc61706895d3cbde6979cc4c14750f759c Mon Sep 17 00:00:00 2001 From: Ted Horst Date: Fri, 7 Mar 2014 01:25:25 -0600 Subject: [PATCH] change FVN hash function to the FVN-1a variant --- src/librustc/util/nodemap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/util/nodemap.rs b/src/librustc/util/nodemap.rs index fe24733aba27d..05b3b10598127 100644 --- a/src/librustc/util/nodemap.rs +++ b/src/librustc/util/nodemap.rs @@ -118,8 +118,8 @@ impl Writer for FnvState { fn write(&mut self, bytes: &[u8]) -> io::IoResult<()> { let FnvState(mut hash) = *self; for byte in bytes.iter() { - hash = hash * 0x100000001b3; hash = hash ^ (*byte as u64); + hash = hash * 0x100000001b3; } *self = FnvState(hash); Ok(())