randomized key added to xor module