Bug: 175139679

Clone this repo:
  1. 39bccfb Make rand_xorshift available to product and vendor am: da77aabaf1 by Matthew Maurer · 3 weeks ago master
  2. da77aab Make rand_xorshift available to product and vendor by Matthew Maurer · 3 weeks ago
  3. a95c427 Merge "Update TEST_MAPPING" am: d71295f8dd am: 611a0ac8ee am: e794f8f8b9 am: fdb337d099 by Treehugger Robot · 10 months ago main-16k-with-phones
  4. fdb337d Merge "Update TEST_MAPPING" am: d71295f8dd am: 611a0ac8ee am: e794f8f8b9 by Treehugger Robot · 10 months ago
  5. e794f8f Merge "Update TEST_MAPPING" am: d71295f8dd am: 611a0ac8ee by Treehugger Robot · 10 months ago main-16k

rand_xorshift

Build Status Build Status Latest version Book API API Minimum rustc version

Implements the Xorshift random number generator.

The Xorshift[^1] algorithm is not suitable for cryptographic purposes but is very fast. If you do not know for sure that it fits your requirements, use a more secure one such as StdRng or OsRng.

[^1]: Marsaglia, George (July 2003). “Xorshift RNGs”. Journal of Statistical Software. Vol. 8 (Issue 14).

Links:

Crate Features

rand_xorshift is no_std compatible. It does not require any functionality outside of the core lib, thus there are no features to configure.

The serde1 feature includes implementations of Serialize and Deserialize for the included RNGs.

License

rand_xorshift 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.