问题描述
例如,是否可以用于生成一次性按键?此外,它的来源是什么,如何用于在 x 和 y ?
这个宇宙中唯一可以被认为是唯一的东西是基于量子效应。常见的例子是放射性衰变。对于某些原子,你可以确定只有半衰期,但你不能确定下一个核会分解。
关于 / dev / random
- 这取决于实现。在Linux中,它用作熵源:
这意味着它优于算法随机生成器,但它也不完美。熵可能不会随机分布,并可能有偏见。
这是哲学。实践是在Linux上 / dev / random
对于绝大多数任务来说都是随机的。
具有更多熵源的随机发生器,包括音频输入上的噪声,CPU温度传感器等。无论如何,它们不是真实的。
有趣的是您可以获得的网站。
For instance, could it be used to generate a one-time pad key?
Also, what are its sources and how could it be used to generate a random number between x and y?
The only thing in this universe that can be considered truly is one based on quantum effects. Common example is radioactive decay. For certain atoms you can be sure only about half-life, but you can't be sure which nucleus will break up next.
About /dev/random
- it depends on implementation. In Linux it uses as entropy sources:
It means that it is better than algorithmic random generators, but it is not perfect as well. The entropy may not be distributed randomly and can be biased.
This was philosophy. Practice is that on Linux /dev/random
is random enough for vast majority of tasks.
There are implementations of random generators that have more entropy sources, including noise on audio inputs, CPU temperature sensors etc. Anyway they are not true.
There is interesting site where you can get Genuine random numbers, generated by radioactive decay.
这篇关于/ dev / random被认为是真正的随机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!