Can I generate authentic random number with python?

前端 未结 4 1175
花落未央
花落未央 2020-12-06 07:12

I\'m learning random module of python. And I know it generates pseudo random number. Which its core idea is to use a high-frequency clock as a seed and then use a function t

4条回答
  •  情歌与酒
    2020-12-06 07:41

    The documentation for the random module has this to say:

    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.

提交回复
热议问题