Registry / crypto / rand-chacha

rand-chacha

JSON →
library0.10.0rscratesunverified

ChaCha random number generator implementation.

# Cargo.toml [dependencies] rand_chacha = "0.10.0"
INSTALL
IMPORT
SIG · RAND-CHACHA
R
rand-chacha
cryptorustv0.10.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ChaCha20Rng
use rand_chacha::ChaCha20Rng;

Create a seeded ChaCha20 RNG and generate random numbers.

use rand_chacha::ChaCha20Rng; use rand_core::SeedableRng; let mut rng = ChaCha20Rng::seed_from_u64(42); let value: u32 = rng.gen(); println!("Random value: {}", value);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.10.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Amazon
1
Resources
rand-chacha — cargo add rand-chacha · libregistry