Although security shouldn't really be a big issue in the communication air purifiiers, it hurts to see the usage of a non cryptographic random generator instead of a cryptographic secure random generator.
The secrets module is introduced in Python 3.6 and I want to support Python 3.4 and Python 3.5. I also don't think that using secure random is important here.
Although security shouldn't really be a big issue in the communication air purifiiers, it hurts to see the usage of a non cryptographic random generator instead of a cryptographic secure random generator.