From: Josh Blum Date: Sat, 19 Sep 2009 06:27:06 +0000 (-0700) Subject: xor that hash X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=803943020c3d53686f2b65a70cd24a780b46c925;p=debian%2Fgnuradio xor that hash --- diff --git a/grc/base/Block.py b/grc/base/Block.py index 43f9ba4e..203e878e 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: reduce(lambda x, y: x ^ y, [hash(param) for param in self.get_params()], 0) my_hash = 0 while get_hash() != my_hash: params_n = n.findall('param')