No description
Find a file
Daniel Baumann ea02895895
Releasing fastforward version 0.10.0-2~ffwd13+u1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2026-05-22 21:28:27 +02:00
debian Releasing fastforward version 0.10.0-2~ffwd13+u1. 2026-05-22 21:28:27 +02:00
src Merging upstream version 0.10.0. 2026-05-22 21:26:44 +02:00
.cargo_vcs_info.json Merging upstream version 0.10.0. 2026-05-22 21:26:44 +02:00
Cargo.lock Merging upstream version 0.10.0. 2026-05-22 21:26:44 +02:00
Cargo.toml Merging upstream version 0.10.0. 2026-05-22 21:26:44 +02:00
Cargo.toml.orig Merging upstream version 0.10.0. 2026-05-22 21:26:44 +02:00
CHANGELOG.md Merging upstream version 0.10.0. 2026-05-22 21:26:44 +02:00
COPYRIGHT Adding upstream version 0.9.0. 2026-05-22 21:26:22 +02:00
LICENSE-APACHE Adding upstream version 0.9.0. 2026-05-22 21:26:22 +02:00
LICENSE-MIT Adding upstream version 0.9.0. 2026-05-22 21:26:22 +02:00
README.md Merging upstream version 0.10.0. 2026-05-22 21:26:44 +02:00

rand_chacha

Test Status Latest version Book API

A cryptographically secure random number generator that uses the ChaCha algorithm.

This implementation of ChaCha RNGs is built over ppv-lite86 by Kaz Wesley, and was formerly the implementation behind rand::rngs::StdRng.

ChaCha is a stream cipher designed by Daniel J. Bernstein1, that we use as an RNG. It is an improved variant of the Salsa20 cipher family, which was selected as one of the "stream ciphers suitable for widespread adoption" by eSTREAM2.

The RNGs provided by this crate are implemented via the fast stream ciphers of the c2-chacha crate.

Links:

Crate Features

rand_chacha is no_std compatible when disabling default features; the std feature can be explicitly required to re-enable std support. Using std allows detection of CPU features and thus better optimisation.

License

rand_chacha is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT, and COPYRIGHT for details.