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