try XOR instead of hashing repr; also parametrize seed