Cargo Features

rand_core has no features set by default.

[dependencies]
rand_core = { version = "0.9.0-beta.1", features = ["std", "os_rng", "serde"] }
std

Enables std of optional getrandom

getrandom:

Implement std::error::Error for getrandom::Error and use std to retrieve OS error descriptions

Affects rand_core::TryRngCore.read_adapter, rand_core::RngReadAdapter

os_rng

Enables getrandom

Affects rand_core::SeedableRng.from_os_rng, rand_core::SeedableRng.try_from_os_rng

serde

enables serde for BlockRng wrapper

Enables serde