Skip to content

Getting Started

Add to your Cargo.toml:

[dependencies]
openentropy-core = "0.10"

Or install the CLI:

Terminal window
cargo install openentropy-cli
use openentropy_core::EntropyPool;
let pool = EntropyPool::auto();
let source = pool.source_names()[0].clone();
let bytes = pool.get_source_bytes(&source, 256, openentropy_core::ConditioningMode::Sha256).unwrap();
for b in &bytes {
print!("{b:02x}");
}
println!();
  • macOS (Apple Silicon): Full support — all 63 entropy sources
  • macOS (Intel): ~20 sources (some ARM-specific sources unavailable)
  • Linux: 12–15 sources (timing, network, disk, process sources)
  • Rust: 1.85+ required

See Choose Your Path if you want a guided route, or use the Quickstart for cross-SDK examples.

Jump directly to your SDK section: