reseeding_rng 0.1.0

ReseedingRng that periodically reseeds the underlying PRNG
Documentation
//! `ReseedingRng` that periodically reseeds the underlying pseudorandom number
//! generator.
//!
//! This crate provides a simplified reimplementation of `ReseedingRng` for use with
//! the random number generators from the `rand` crate v0.10, which no longer
//! includes the `ReseedingRng` from v0.9 and earlier.
//!
//! Note that periodic reseeding is never strictly _necessary_.
//! See [the `rand` v0.9 documentation] for further discussion.
//!
//! [the `rand` v0.9 documentation]: https://docs.rs/rand/0.9.2/rand/rngs/struct.ReseedingRng.html
//!
//! # Examples
//!
//! ```rust
//! # #[cfg(feature = "rand010")]
//! # {
//! # use rand010 as rand;
//! use rand::{RngExt as _, rngs::StdRng, rngs::SysRng};
//! use reseeding_rng::rand010::ReseedingRng;
//!
//! let mut rng = ReseedingRng::<StdRng, _>::try_new(1024 * 64, SysRng).unwrap();
//! println!("{:?}", rng.random::<[char; 4]>());
//! # }
//! ```

#![cfg_attr(not(test), no_std)]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[cfg(feature = "rand010")]
pub mod rand010;