Bug: 175139679

Clone this repo:
  1. f57add1 Merge "Refresh Android.bp, cargo2android.json, TEST_MAPPING." by Joel Galenson · 5 weeks ago master
  2. 983653b Refresh Android.bp, cargo2android.json, TEST_MAPPING. by Joel Galenson · 8 weeks ago
  3. 7c717d5 Update TEST_MAPPING am: 3f67c22d21 am: 865f09c6ac am: 563748ff09 by Joel Galenson · 5 months ago
  4. 563748f Update TEST_MAPPING am: 3f67c22d21 am: 865f09c6ac by Joel Galenson · 5 months ago
  5. 865f09c Update TEST_MAPPING am: 3f67c22d21 by Joel Galenson · 5 months ago android-s-v2-preview-1 android-s-v2-beta-2 android-s-v2-preview-2

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.