/ dev / random被认为是真正的随机? [英] Is /dev/random considered truly random?

查看:236
本文介绍了/ dev / random被认为是真正的随机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,是否可以用于生成一次性按键?

此外,它的来源是什么,如何用于在 x y

解决方案

这个宇宙中唯一可以被认为是唯一的东西是基于量子效应。常见的例子是放射性衰变。对于某些原子,你可以确定只有半衰期,但你不能确定下一个核会分解。



关于 / dev / random - 这取决于实现。在Linux中,它用作熵源:


Linux内核从键盘时间生成熵
,鼠标
运动,和IDE定时,并使
可用于
的其他操作系统进程
的随机字符数据通过特殊文件/ dev / random
和/ dev / urandom。$ /

维基



这意味着它优于算法随机生成器,但它也不完美。熵可能不会随机分布,并可能有偏见。



这是哲学。实践是在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:

The Linux kernel generates entropy from keyboard timings, mouse movements, and IDE timings and makes the random character data available to other operating system processes through the special files /dev/random and /dev/urandom.

Wiki

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被认为是真正的随机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆