Skip to content

Commit

Permalink
Remove Bitrig support (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephlr authored and newpavlov committed Jul 7, 2019
1 parent 479d036 commit ca33db9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
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

0 comments on commit ca33db9

Please sign in to comment.