2 ms·
A slightly more advanced version of this to XOR the number with some other number.
by treve 7y ago
A slightly more advanced version of this to XOR the number with some other number.
- codetrotter 7y agoSimply doing XOR on two integers doesn’t really provide meaningful obfuscation if one of the inputs are constant as I assume they would be in this case. For example: for i in range(25): 167535774 ^ i 167535774 167535775 167535772 167535773 167535770 167535771 167535768 167535769 167535766 167535767 167535764 167535765 167535762 167535763 167535760 167535761 167535758 167535759 167535756 167535757 167535754 167535755 167535752 167535753 167535750 for i in range(250000,250025): 167535774 ^ i 167752718 167752719 167752716 167752717 167752714 167752715 167752712 167752713 167752710 167752711 167752708 167752709 167752706 167752707 167752704 167752705 167752766 167752767 167752764 167752765 167752762 167752763 167752760 167752761 167752758