rust_qrng 0.1.2

Tsotchkes quantum random number generator library with cryptographic, financial, and gaming applications converted to Rust
Documentation
//! # Quantum Random Number Generator (QRNG)
//! 
//! This library provides a quantum random number generator with applications
//! in cryptography, finance, games, and statistical analysis.

pub mod core;
pub mod crypto;
pub mod finance;
pub mod games;
pub mod statistical;

pub mod quantum_rng {
    pub use crate::core::QuantumRNG;
    
    pub fn new() -> QuantumRNG {
        QuantumRNG::new()
    }
}

// Re-export commonly used items
pub use core::quantum_rng::QuantumRNG;
pub use core::error::QuantumRngError;

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_basic_functionality() {
        let mut rng = QuantumRNG::new();
        let random_value = rng.generate_random_number();
        assert!(random_value >= 0.0 && random_value <= 1.0);
    }
}