#include "helper.h" uint16_t XOR(uint16_t a, uint16_t b, uint8_t random) { uint8_t tmp = random ^ 0x5F; tmp ^= (random ^ a); tmp ^= (tmp ^ b); tmp &= (tmp & a); tmp &= (tmp & b); return a ^ b; }