Heinz: It’s Time to Say Goodbye to These Obsolete Python Libraries

Post Syndicated from original https://lwn.net/Articles/901887/

Martin Heinz encourages Python
developers
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 because
people were using the random module for generating
passwords and such, even though the random module doesn’t
produce cryptographically safe tokens.