commit | f12bae4ac5747915b4edb2890df04f6f397dad2e | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Tue May 31 15:54:11 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue May 31 15:54:11 2022 +0000 |
tree | c88755f63c43d70f3bff213c37b4b38172ae00b7 | |
parent | 6f1219cd763a2eaf509f1389c6f03d73a11584a0 [diff] | |
parent | d3898c664639dfa4ff45378c7f3eb37707653f75 [diff] |
Update TEST_MAPPING am: d3898c6646 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/rand_xorshift/+/2107128 Change-Id: Ic8cc012cdf0736fb84ca4bac2e4c73c37249ec04 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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.