]> git.proxmox.com Git - rustc.git/blame - vendor/rand_chacha/src/lib.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / vendor / rand_chacha / src / lib.rs
CommitLineData
0731742a
XL
1// Copyright 2018 Developers of the Rand project.
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
8
9//! The ChaCha random number generator.
10
f9f354fc
XL
11#![doc(
12 html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
13 html_favicon_url = "https://www.rust-lang.org/favicon.ico",
14 html_root_url = "https://rust-random.github.io/rand/"
15)]
0731742a
XL
16#![deny(missing_docs)]
17#![deny(missing_debug_implementations)]
18#![doc(test(attr(allow(unused_variables), deny(warnings))))]
416331ca 19#![cfg_attr(not(feature = "std"), no_std)]
0731742a 20
416331ca 21pub use rand_core;
0731742a
XL
22
23mod chacha;
f9f354fc 24mod guts;
0731742a 25
f9f354fc
XL
26pub use crate::chacha::{
27 ChaCha12Core, ChaCha12Rng, ChaCha20Core, ChaCha20Rng, ChaCha8Core, ChaCha8Rng,
28};
416331ca
XL
29
30/// ChaCha with 20 rounds
31pub type ChaChaRng = ChaCha20Rng;
32/// ChaCha with 20 rounds, low-level interface
33pub type ChaChaCore = ChaCha20Core;