def salt()

in sketches/Sketches.py [0:0]


    def salt(self, x):
        if self.seed == 0:
            return x
        elif isinstance(x, int) or isinstance(x, float):
            return mmh3.hash64(bytes(x))[0]
        else:
            return mmh3.hash64(x)[0]