commit | a9588741eabfc8c72c7d9a07d840b70577de8256 | [log] [tgz] |
---|---|---|
author | Joel Galenson <[email protected]> | Tue Aug 24 20:20:52 2021 +0000 |
committer | Automerger Merge Worker <[email protected]> | Tue Aug 24 20:20:52 2021 +0000 |
tree | c5a48db01f4522a75eb8b7122052865939d89025 | |
parent | f7b04b5fa34b456ff4f6260c7d60120edd021271 [diff] | |
parent | c9ad70f040ed960aff698c15b404cdcd321b4c24 [diff] |
Update TEST_MAPPING am: 3f67c22d21 am: 865f09c6ac am: 563748ff09 am: 7c717d5211 am: c9ad70f040 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/rand_xorshift/+/1806100 Change-Id: I5a50c03f34d67f37dd1cb62bec17c68b0948de3e
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:
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.
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.