I am trying to generate random numbers securely and I found the secrets module, apperantly the only way to generate random numbers is to have an instance of the secrets.SystemRandom
class, but now I am confused, should I be using one or multiple instances of it for generating 17 random numbers in different and completely unrelated places...
EDIT 1: Documentation for secrets.SystemRandom() https://docs.python.org/3/library/random.html#random.SystemRandom EDIT 2: The docs are from here https://docs.python.org/3/library/secrets.html
EDIT 3: After using https://grep.app/ and finding https://github.com/pyradius/pyrad/blob/master/pyrad/packet.py I think I only need to use one instance of the class, I will use it, if this is wrong, please leave a comment or an answert
Thanks for the help in advance
Aucun commentaire:
Enregistrer un commentaire