rand06-compat 0.2.0

Compatibility wrapper between `rand_core` 0.6 and 0.10
Documentation
# rand06-compat

This crate provides a compatibility wrapper between versions `0.6` and `0.10` of [`rand_core`](https://docs.rs/rand_core/0.10).

# Warning about `no_std` ⚠️

Supporting fallible RNGs is tricky to do in a clean manner. This compat wrapper hardcodes an error code of `1` in the case that the RNG fails.

PRs welcome for a better solution.

# Example

```rust
use rand_core_06::RngCore as RngCore06;
use rand::rngs::SysRng;
use rand06_compat::Rand0_6CompatExt;

// This function requires an RNG implementing the `0.6` trait.
fn foo<R>(rng: &mut R) where R: RngCore06 {
    let num: u32 = rng.next_u32();
    println!("random number: {}", num);
}

// Pass in the RNG from `0.10` using compat trait.
foo(&mut SysRng.compat())
```