mercredi 13 février 2019

Why is random.random() not secure in Python?

I came across this question on Stack overflow: How to randomly selection item from a list in Python and they mentioned that it is not suitable for cryptographic/security purposes.

So, I found this page in the official documentation: random - Generate pseudorandom numbers

It mentions that they use a Mersenne twister to generate random numbers.

Isn't Mersenne twister supposed to be a pretty decent random generator (at least that's what I was told in class)? So why can you not use it for security purposes?




Aucun commentaire:

Enregistrer un commentaire