📜  dev random dev urandom bash - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:36.009000             🧑  作者: Mango

代码示例1
In a GNU/Linux distributions, there are special files 
(/dev/random and /dev/urandom) to access the kernel’s random number generator.

- /dev/urandom device returns random bytes using a pseudoran‐
   dom number generator seeded from the entropy pool. 
   
- /dev/random  device  is a legacy interface which dates back to a time
   where  the  cryptographic  primitives  used  in  the   implementation   of
   /dev/urandom  were  not  widely trusted.