commit | 9bbdf0a8c67b1aa4bff31327a19c79d301abe395 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <qwandor@google.com> | Fri Nov 17 01:03:48 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Nov 17 01:03:48 2023 +0000 |
tree | c896a7d4cbf1ec3d06ac0f38da9323eb4e2a7d1e | |
parent | 1b202c4041b956a9c463b3c7039868b0fae3cfaa [diff] | |
parent | 7a09400d627b6d0efd179bf5ac325a49d1b0ec1a [diff] |
Migrate to cargo_embargo. am: 7a09400d62 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/rand_xorshift/+/2832652 Change-Id: Iae8313877f4fa4ac4c5ca99ba1aa4a9e27b99740 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.