Bug: 175139679

Clone this repo:
  1. 542afe2 Migrate 25 crates to monorepo. am: 041de78c7f by James Farrell · 5 months ago main master
  2. 041de78 Migrate 25 crates to monorepo. by James Farrell · 5 months ago
  3. 8e69bde Update Android.bp by running cargo_embargo am: bc62e0bb43 by James Farrell · 6 months ago
  4. bc62e0b Update Android.bp by running cargo_embargo by James Farrell · 6 months ago
  5. 807463b Update Android.bp by running cargo_embargo am: b50a1c83c2 am: 312e455107 by James Farrell · 8 months ago android15-tests-dev

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.