Skip to content

Commit

Permalink
Fix docs comment for FILE_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed May 3, 2024
1 parent efa18b8 commit 6637a60
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/use_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ use core::{
sync::atomic::{AtomicUsize, Ordering::Relaxed},
};

//! 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.
/// 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.
const FILE_PATH: &str = "/dev/urandom\0";
const FD_UNINIT: usize = usize::max_value();

Expand Down

0 comments on commit 6637a60

Please sign in to comment.