Rust Quick Reference
Use this page for common workflows. For all types and signatures, see Rust API Reference.
Source Discovery
Section titled “Source Discovery”use openentropy_core::{detect_available_sources, platform_info};let sources = detect_available_sources();let platform = platform_info();Single-Source Sampling
Section titled “Single-Source Sampling”use openentropy_core::{ConditioningMode, EntropyPool};
let pool = EntropyPool::auto();let source = pool.source_names()[0].clone();
let raw = pool.get_source_raw_bytes(&source, 4096).unwrap();let conditioned = pool .get_source_bytes(&source, 256, ConditioningMode::Sha256) .unwrap();Pool Workflows (advanced)
Section titled “Pool Workflows (advanced)”use openentropy_core::EntropyPool;
let pool = EntropyPool::auto();pool.collect_all_parallel(5.0);let data = pool.get_random_bytes(256);let raw = pool.get_raw_bytes(256);let health = pool.health_report();Dispatcher Analysis
Section titled “Dispatcher Analysis”use openentropy_core::dispatcher::{analyze, AnalysisProfile};let report = analyze(&[("src", &data)], &AnalysisProfile::Deep.to_config());Focused Analysis Calls
Section titled “Focused Analysis Calls”use openentropy_core::{full_analysis, chaos::chaos_analysis, trial_analysis};
let forensic = full_analysis("src", &data);let chaos = chaos_analysis(&data);let trials = trial_analysis(&data, &Default::default());Session Workflows
Section titled “Session Workflows”use openentropy_core::{list_sessions, load_session_raw_data};use std::path::Path;
let sessions = list_sessions(Path::new("sessions"))?;let raw_map = load_session_raw_data(&sessions[0].0)?;