commit | f3bd976e98524be90059e55864a09fbd3a325a11 | [log] [tgz] |
---|---|---|
author | Haibo Huang <hhb@google.com> | Mon Jan 11 21:36:36 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Jan 11 21:36:36 2021 +0000 |
tree | 0b1632da5b5b4cbce8ffd10f76d5817c6a1f28e5 | |
parent | f854b2c735ac14808ece865ca495d07ff22575d6 [diff] | |
parent | 368abbf977658a07b447c7d715920210aced3967 [diff] |
Upgrade rust/crates/rand_xorshift to 0.3.0 am: 56ff62a9c8 am: 368abbf977 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/rand_xorshift/+/1533726 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I431c2726573ae3e0ac5c477216f2d955e64088f8
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.