Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
//! | macOS | [`getentropy()`][19] if available, otherise [`/dev/random`][20] (identical to `/dev/urandom`)
//! | iOS | [`SecRandomCopyBytes`][4]
//! | FreeBSD | [`kern.arandom`][5]
//! | OpenBSD, Bitrig | [`getentropy`][6]
//! | OpenBSD | [`getentropy`][6]
//! | NetBSD | [`/dev/urandom`][7] after reading from `/dev/random` once
//! | Dragonfly BSD | [`/dev/random`][8]
//! | Solaris, illumos | [`getrandom`][9] system call if available, otherwise [`/dev/random`][10]
Expand Down Expand Up @@ -176,8 +176,6 @@ mod use_file;
cfg_if! {
if #[cfg(target_os = "android")] {
#[path = "linux_android.rs"] mod imp;
} else if #[cfg(target_os = "bitrig")] {
#[path = "openbsd_bitrig.rs"] mod imp;
} else if #[cfg(target_os = "cloudabi")] {
#[path = "cloudabi.rs"] mod imp;
} else if #[cfg(target_os = "dragonfly")] {
Expand All @@ -201,7 +199,7 @@ cfg_if! {
} else if #[cfg(target_os = "netbsd")] {
#[path = "use_file.rs"] mod imp;
} else if #[cfg(target_os = "openbsd")] {
#[path = "openbsd_bitrig.rs"] mod imp;
#[path = "openbsd.rs"] mod imp;
} else if #[cfg(target_os = "redox")] {
#[path = "use_file.rs"] mod imp;
} else if #[cfg(target_os = "solaris")] {
Expand Down
2 changes: 1 addition & 1 deletion src/openbsd_bitrig.rs → src/openbsd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

//! Implementation for OpenBSD / Bitrig
//! Implementation for OpenBSD
extern crate std;

use crate::Error;
Expand Down