SDK Integration
This guide shows practical integration patterns for application code.
Pattern 1: Seed a CSPRNG Source
Section titled “Pattern 1: Seed a CSPRNG Source”Collect conditioned bytes and pass them to your application’s cryptographic primitive.
from openentropy import EntropyPoolseed = EntropyPool.auto().get_random_bytes(32)use openentropy_core::EntropyPool;let seed = EntropyPool::auto().get_random_bytes(32);Pattern 2: Validate Before Operational Use
Section titled “Pattern 2: Validate Before Operational Use”Run dispatcher analysis in CI or startup checks:
from openentropy import analyzereport = analyze([("startup", data)], profile="security")use openentropy_core::dispatcher::{analyze, AnalysisProfile};let report = analyze(&[("startup", &data)], &AnalysisProfile::Security.to_config());Pattern 3: Monitor Source Health
Section titled “Pattern 3: Monitor Source Health”Use periodic health reports and alert when healthy source count drops.