From dcd4b6efd6e0a0130fbdc8f8aa5db1bc182e653f Mon Sep 17 00:00:00 2001
From: Josh Blum <josh@joshknows.com>
Date: Fri, 25 Sep 2009 12:54:33 -0700
Subject: hash the tuple of hashes to id the current params

---
 grc/base/Block.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'grc/base/Block.py')

diff --git a/grc/base/Block.py b/grc/base/Block.py
index 203e878e40..b2015cc403 100644
--- a/grc/base/Block.py
+++ b/grc/base/Block.py
@@ -239,7 +239,7 @@ class Block(Element):
 		that are needed for the connections creation phase.
 		@param n the nested data odict
 		"""
-		get_hash = lambda: reduce(lambda x, y: x ^ y, [hash(param) for param in self.get_params()], 0)
+		get_hash = lambda: hash(tuple(map(hash, self.get_params())))
 		my_hash = 0
 		while get_hash() != my_hash:
 			params_n = n.findall('param')
-- 
cgit v1.2.3