Bug: 175139679

Clone this repo:
  1. 312e455 Update Android.bp by running cargo_embargo am: b50a1c83c2 by James Farrell · 9 weeks ago main master
  2. b50a1c8 Update Android.bp by running cargo_embargo by James Farrell · 10 weeks ago
  3. c65b1d7 Remove bincode blocklist am: 7dac338b69 by Martin Geisler · 3 months ago
  4. 7dac338 Remove bincode blocklist by Martin Geisler · 3 months ago
  5. 0dd180c Migrate to cargo_embargo. am: 7a09400d62 am: 5b623a5a3a am: 84f3091d4f by Andrew Walbran · 8 months ago android14-qpr3-release android14-qpr3-s2-release android-14.0.0_r50 android-14.0.0_r51 android-14.0.0_r52 android-14.0.0_r53 android-14.0.0_r54

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.