如何确定 PRNG python.random 使用的是什么?

How do I determine what PRNG python.random is using?

我正在查找有关 random 的更多信息。主要是什么是种子,在那个伪随机序列中发生了多少步&那个种子是日期时间吗,即随机使用系统提供的随机还是默认时间?

我查看了 dir(random) 并没有看到任何超级有前途的东西......

documentation 状态:

Almost all module functions depend on the basic function random(), which generates a random float uniformly in the semi-open range [0.0, 1.0). Python uses the Mersenne Twister as the core generator. It produces 53-bit precision floats and has a period of 2**19937-1. The underlying implementation in C is both fast and threadsafe. The Mersenne Twister is one of the most extensively tested random number generators in existence. However, being completely deterministic, it is not suitable for all purposes, and is completely unsuitable for cryptographic purposes.

您可以研究源代码here, in particular the default implementation“来自当前时间或来自操作系统特定随机源的种子(如果可用)”