Heinz: It's Time to Say Goodbye to These Obsolete Python Libraries
Martin Heinz encourages Pythondevelopers to move on to a number of newer modules.
Using os.urandom isn't actually the problem here though,the reason the secrets module got introduced is becausepeople were using the random module for generatingpasswords and such, even though the random module doesn'tproduce cryptographically safe tokens.