Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement rand::RngCore for AntithesisRng #17

Merged
merged 2 commits into from
Oct 31, 2024

Commits on Oct 30, 2024

  1. feat: implement rand::RngCore for AntithesisRng

    Adds `AntithesisRng` struct implementing the `rand` crate's `RngCore` trait, allowing integration with the broader Rust random number generation ecosystem. The implementation uses the existing `get_random()` function and adds methods like `next_u32()`, `next_u64()`, and `fill_bytes()`. Includes comprehensive tests for the new functionality.
    
    Key changes:
    - Add `use rand::{Error, RngCore}`
    - Create `AntithesisRng` struct with `RngCore` implementation
    - Add tests using `rand::Rng` and `SliceRandom` traits
    andrewgazelka committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    826148a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    50cc08b View commit details
    Browse the repository at this point in the history