启动信息如下
-------------------------------------------------------------------------------------------------------------------------------
[ 1.063658] ALSA device list:
[ 1.066647] #0: Loopback 1
[ 1.084493] random: fast init done
[ 1.090863] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.099108] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 1.114530] devtmpfs: mounted
[ 1.120799] Freeing unused kernel memory: 1024K
[ 1.125469] Run /sbin/init as init process
[ 1.222574] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Initializing random number generator: OK
Saving random seed: [ 1.438545] random: dd: uninitialized urandom read (512 bytes read)
OK
Starting haveged: haveged: can not open UNIX socket
haveged: can not initialize command socket: Function not implemented
haveged: haveged starting up
OK
Starting rngd:
Initalizing available sources
Failed to init entropy source hwrng
libgcrypt not available. Disabling AES in JITTER source
Enabl[ 42.186122] random: crng init done
ing JITTER rng support
Initalizing entropy source jitter
OK
Welcome to Buildroot
buildroot login:
-------------------------------------------------------------------------------------------------------------------------------
一开始是看到 random: crng init done 觉得奇怪,后来经群里大佬知道buildroot选择安装了haveged ,感觉haveged 启动不正常,
然后看一下随机数熵是100多,感觉haveged没起到作用,然后又安装了rng-tool,rng-tool启动时会卡死10秒才能进入系统,又查看
一下随机数熵是4000多,想问下rng-tool启动时卡死10多秒算不算正常,这时间好长。。。。。
离线
可以还原成英文吗,看着有点难受喔
离线
可以还原成英文吗,看着有点难受喔
什么还原成英文?
离线
启动haveged打印的信息
-------------------------------------------------------------------------------------------------------------
# cat /proc/sys/kernel/random/entropy_avail
24
# haveged
haveged: can not open UNIX socket
haveged: can not initialize command socket: Function not implemented
haveged: haveged starting up
# cat /proc/sys/kernel/random/entropy_avail
32
-------------------------------------------------------------------------------------------------------------
启动rngd打印的信息
-------------------------------------------------------------------------------------------------------------
# cat /proc/sys/kernel/random/entropy_avail
4
# rngd -r /dev/urandom -o /dev/random
Initalizing available sources
Initalizing entropy source hwrng
libgcrypt not available. Disabling AES in JITTER source
Enabling JITTER rng support
Initalizing entropy source jitter
# cat /proc/sys/kernel/random/entropy_avail
4035
-------------------------------------------------------------------------------------------------------------
开机自启动的rngd比如系统手动启动慢很多很多。。。
离线
为什么要产生随机数?
离线
为什么要产生随机数?
写的一下应用需要用到随机数
离线
什么还原成英文?
看错了, 是我的浏览器设置问题,自动翻译成了英文.
萌新请教一下,为什么我没有用其他随机数产生软件,
while [ 1 ]; do
cat /dev/urandom > /dev/fb0
done
这个跑一天都没有问题呢?
离线