Debian Codegraph @

debian/missing-sources/rand_xorshift/README.md

raw symbols SCIP
1 # rand_xorshift
2
3 [![Test Status](https://github.com/rust-random/rngs/workflows/Tests/badge.svg?event=push)](https://github.com/rust-random/rngs/actions)
4 [![Latest version](https://img.shields.io/crates/v/rand_xorshift.svg)](https://crates.io/crates/rand_xorshift)
5 [![Book](https://img.shields.io/badge/book-master-yellow.svg)](https://rust-random.github.io/book/)
6 [![API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand/rand_xorshift)
7 [![API](https://docs.rs/rand_xorshift/badge.svg)](https://docs.rs/rand_xorshift)
8
9 Implements the Xorshift random number generator.
10
11 The Xorshift[^1] algorithm is not suitable for cryptographic purposes
12 but is very fast. If you do not know for sure that it fits your
13 requirements, use a more secure one such as `StdRng` or `OsRng`.
14
15 [^1]: Marsaglia, George (July 2003).
16 ["Xorshift RNGs"](https://www.jstatsoft.org/v08/i14/paper).
17 *Journal of Statistical Software*. Vol. 8 (Issue 14).
18
19 Links:
20
21 - [API documentation (master)](https://rust-random.github.io/rand/rand_xorshift)
22 - [API documentation (docs.rs)](https://docs.rs/rand_xorshift)
23 - [Changelog](https://github.com/rust-random/rngs/blob/master/rand_xorshift/CHANGELOG.md)
24
25 [rand]: https://crates.io/crates/rand
26
27
28 ## Crate Features
29
30 `rand_xorshift` is `no_std` compatible. It does not require any functionality
31 outside of the `core` lib, thus there are no features to configure.
32
33 The `serde` feature includes implementations of `Serialize` and `Deserialize`
34 for the included RNGs.
35
36
37 ## License
38
39 `rand_xorshift` is distributed under the terms of both the MIT license and the
40 Apache License (Version 2.0).
41
42 See [LICENSE-APACHE](LICENSE-APACHE) and [LICENSE-MIT](LICENSE-MIT), and
43 [COPYRIGHT](COPYRIGHT) for details.