lundi 27 novembre 2017

Whats the difference between pseudo-random and secure pseudo-random number generator?

On the random module python page (Link Here) there is this warning:

Warning: The pseudo-random generators of this module should not be used for security purposes. Use os.urandom() or SystemRandom if you require a cryptographically secure pseudo-random number generator.

  • So whats the difference between these two types of random?

  • Is one closer to a true random than the other?

  • Would the secure random be overkill in non-cryptographic instances?

  • Are there any other random modules in python?




Aucun commentaire:

Enregistrer un commentaire