commit | c7679fcbcb7f3504c41ec064ed129c82491b858f | [log] [tgz] |
---|---|---|
author | Treehugger Robot <[email protected]> | Thu Feb 18 03:23:39 2021 +0000 |
committer | Automerger Merge Worker <[email protected]> | Thu Feb 18 03:23:39 2021 +0000 |
tree | fd1662d2dd877593a08cf3fa297a0806a431c305 | |
parent | 619d34e9ae59e4969bf83163dc0c1f0ff70377d4 [diff] | |
parent | b98f01bfdc05190918fa9bdc8df2cba2f65051db [diff] |
Merge "Clean up rust_test_host TEST_MAPPING after default update" am: 7d71471018 am: 4ce34f22a2 am: aa6604d91f am: b98f01bfdc Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/rand_xorshift/+/1583344 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I8e8b9d1cf6ce45b61fe0bcec2d25d675b28d85b5
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.