xor that hash
[debian/gnuradio] / grc / base / Block.py
index 43f9ba4e962b1b08a5790e523e9387b3d5f4d950..203e878e400650105806d155ec243483c3cacd4c 100644 (file)
@@ -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')