Skip to main content

osom_lib_entropy_cprng/
lib.rs

1//! This crate defines and implements an entropy generator,
2//! that is base on cryptographically secure PRNG. It
3//! uses an OS-specific entropy only to seed the CPRNG.
4//!
5//! This create is `#![no_std]`.
6#![deny(warnings)]
7#![allow(unused_features)]
8#![cfg_attr(docsrs, feature(doc_cfg))]
9#![cfg_attr(docsrs, allow(unused_attributes))]
10#![warn(clippy::all, clippy::pedantic)]
11#![allow(clippy::inline_always)]
12#![no_std]
13
14pub mod cprng_entropy;
15
16/// [`CPRNGEntropy`][`crate::cprng_entropy::CPRNGEntropy`] backed by `ChaCha<20>` algorithm.
17pub type DefaultEntropy = cprng_entropy::CPRNGEntropy<osom_lib_prng::prngs::ChaCha<20>>;