I have a little python program which print random HEX string, it generates one HEX string each time I run the program. i want the program to only generate a HEX string one's, that means the program should not generate a string that has already generated been generated.
EXAMPLE
python3 program.py
1. ab6b
2. 4c56
3. 1b13
4. ae8d
The next example show that the output is random and the program repeats lines.
1b13
ae8d
4c56
ae8d
My Code
import os
import binascii
print(binascii.hexlify(os.urandom(2)).decode('utf-8'))