mardi 9 février 2016

Why does Django do not use urandom?

Django uses utils.crypto.get_random_string() when getting random string.

It reset seeds by random.getstate(), time.time() and settings.SECRET_KEY for hard to predict.

However, I think that to use os.urandom() is simple and best way.

Why does Django do not use os.urandom?




Aucun commentaire:

Enregistrer un commentaire