当前位置: 首页 > Linux

运维小事件-持续更新

时间:2023-04-06 23:45:50 Linux

运维小事件linux系统系统随机数#两种获取随机值的伪设备/dev/random/dev/urandomcat/dev/urandom|od-x|tr-d''|head-n1random通过进程中断获取随机数。如果中断次数不够,程序会阻塞,而urandom不会阻塞程序,所以random的精度比urandom高,可能会出现重复