commit | 619d34e9ae59e4969bf83163dc0c1f0ff70377d4 | [log] [tgz] |
---|---|---|
author | Bob Badour <[email protected]> | Wed Feb 17 19:41:31 2021 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed Feb 17 19:41:31 2021 +0000 |
tree | 03c748bb3fdd4e0765997a417536bb1aaf7c4838 | |
parent | ebe7b2dfded04443d768313317df86146b6ed673 [diff] | |
parent | 9e8f2fabf21a74757dd5bcabe42e7a7300e28196 [diff] |
[LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/rand_xorshift am: ece6fa52e4 am: 054414799d am: ef9b950aef am: 9e8f2fabf2 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/rand_xorshift/+/1587403 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ifc06351321ba923732039df29bd9634016896c02
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.