Constant getrandom::use_file::FILE_PATH

source ·
const FILE_PATH: &str = "/dev/urandom\0";
Expand description

For all platforms, we use /dev/urandom rather than /dev/random. For more information see the linked man pages in lib.rs.

  • On Linux, “/dev/urandom is preferred and sufficient in all use cases”.
  • On Redox, only /dev/urandom is provided.
  • On AIX, /dev/urandom will “provide cryptographically secure output”.
  • On Haiku and QNX Neutrino they are identical.