commit | 84f3091d4f069c740f230a06bea10a4178bc022e | [log] [tgz] |
---|---|---|
author | Andrew Walbran <[email protected]> | Fri Nov 17 01:36:34 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Fri Nov 17 01:36:34 2023 +0000 |
tree | c896a7d4cbf1ec3d06ac0f38da9323eb4e2a7d1e | |
parent | 4206e96812e9791953b474d73c25eff41c8866e8 [diff] | |
parent | 5b623a5a3aabade94ace9fd322168a51c5303341 [diff] |
Migrate to cargo_embargo. am: 7a09400d62 am: 5b623a5a3a Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/rand_xorshift/+/2832652 Change-Id: Ib2eabfb05c4f3ca45dbbd522501d7821875cb55c Signed-off-by: Automerger Merge Worker <[email protected]>
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.