curand returns unsigned
Use bitwise operator