vendredi 19 mars 2021

Cryptographic pseudorandom generator in python 3

Is there any cryptographic pseudorandom generator (PRG) in Python 3 that I can use? The PRG would take a random seed and expand it to arbitrary-length pseudorandom output. I also need to map the output to integers in a specified range.

Please note that sampling independent random bytes/numbers from os.random or the secrets module isn't a solution.




Aucun commentaire:

Enregistrer un commentaire