1# rand_hc
2
3[![Build Status](https://travis-ci.org/rust-random/rand.svg)](https://travis-ci.org/rust-random/rand)
4[![Build Status](https://ci.appveyor.com/api/projects/status/github/rust-random/rand?svg=true)](https://ci.appveyor.com/project/rust-random/rand)
5[![Latest version](https://img.shields.io/crates/v/rand_hc.svg)](https://crates.io/crates/rand_hc)
6[![Documentation](https://docs.rs/rand_hc/badge.svg)](https://docs.rs/rand_hc)
7[![Minimum rustc version](https://img.shields.io/badge/rustc-1.22+-yellow.svg)](https://github.com/rust-random/rand#rust-version-requirements)
8[![License](https://img.shields.io/crates/l/rand_hc.svg)](https://github.com/rust-random/rand/tree/master/rand_hc#license)
9
10A cryptographically secure random number generator that uses the HC-128
11algorithm.
12
13HC-128 is a stream cipher designed by Hongjun Wu[^1], that we use as an
14RNG. It is selected as one of the "stream ciphers suitable for widespread
15adoption" by eSTREAM[^2].
16
17Documentation:
18[master branch](https://rust-random.github.io/rand/rand_hc/index.html),
19[by release](https://docs.rs/rand_hc)
20
21[Changelog](CHANGELOG.md)
22
23[rand]: https://crates.io/crates/rand
24[^1]: Hongjun Wu (2008). ["The Stream Cipher HC-128"](
25      http://www.ecrypt.eu.org/stream/p3ciphers/hc/hc128_p3.pdf).
26      *The eSTREAM Finalists*, LNCS 4986, pp. 39–47, Springer-Verlag.
27
28[^2]: [eSTREAM: the ECRYPT Stream Cipher Project](
29      http://www.ecrypt.eu.org/stream/)
30
31
32## Crate Features
33
34`rand_hc` is `no_std` compatible. It does not require any functionality
35outside of the `core` lib, thus there are no features to configure.
36
37
38# License
39
40`rand_hc` is distributed under the terms of both the MIT license and the
41Apache License (Version 2.0).
42
43See [LICENSE-APACHE](LICENSE-APACHE) and [LICENSE-MIT](LICENSE-MIT), and
44[COPYRIGHT](COPYRIGHT) for details.
45