commit | c65b1d79dc065112fe773a37f71d607c06ee5b00 | [log] [tgz] |
---|---|---|
author | Martin Geisler <mgeisler@google.com> | Wed Apr 17 08:16:03 2024 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Apr 17 08:16:03 2024 +0000 |
tree | 1c36fb2f8cd2e3bf70cd79017f68450086d0ebbc | |
parent | 0dd180cc0faf2736ec64bb8c4ce3d3e4f64f1824 [diff] | |
parent | 7dac338b69d4020762df7802253c24239944ee3b [diff] |
Remove bincode blocklist am: 7dac338b69 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/rand_xorshift/+/3044192 Change-Id: Ic5115b1a8b003194f639c1632716132dd36eee63 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.