This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DRA821U: 在A72上是否可以直接获取到内部硬件随机数发生器产生的随机数

Part Number: DRA821U


A72系统启动2s左右,应用程序以阻塞的方式调用getrandom()函数,getrandom()函数通过系统调用到内核空间获取“entropy pool”中的随机数,由于linux内核的“entropy pool”中数据不足,导致getrandom()函数阻塞3s左右才获取到随机数。当前设备硬件支持随机数发生器,应该如何使用随机数发生器来加快内核的“entropy pool”生成随机数的速度。