commit | ece6fa52e4c6d0ff5ec0a7e91d00a328550f8a12 | [log] [tgz] |
---|---|---|
author | Bob Badour <bbadour@google.com> | Fri Feb 12 18:05:58 2021 -0800 |
committer | Bob Badour <bbadour@google.com> | Fri Feb 12 18:05:58 2021 -0800 |
tree | 03c748bb3fdd4e0765997a417536bb1aaf7c4838 | |
parent | 56ff62a9c82cfb122ae9d911af75ea43add3643a [diff] |
[LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/rand_xorshift Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT to: Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I1c332bd144ee50d28e590c655d6ce259b73707f8
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.