Skip to content
Closed
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: 5 additions & 1 deletion crypto-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub use hybrid_array as array;
pub use hybrid_array::typenum;

#[cfg(feature = "getrandom")]
pub use getrandom;
pub use getrandom::{self, SysRng};
#[cfg(feature = "rand_core")]
pub use {generate::Generate, rand_core};

Expand All @@ -33,6 +33,10 @@ use hybrid_array::{
#[cfg(feature = "rand_core")]
use rand_core::CryptoRng;

/// [`CryptoRng`] interface for the system's preferred random number source that panics on error.
#[cfg(feature = "getrandom")]
pub type UnwrapSysRng = rand_core::UnwrapErr<SysRng>;

/// Block on which [`BlockSizeUser`] implementors operate.
pub type Block<B> = Array<u8, <B as BlockSizeUser>::BlockSize>;

Expand Down