commit | 983653b07f3da92b3adfbc82560cccdfa4803209 | [log] [tgz] |
---|---|---|
author | Joel Galenson <[email protected]> | Mon Nov 29 14:05:00 2021 -0800 |
committer | Joel Galenson <[email protected]> | Fri Dec 10 15:33:17 2021 -0800 |
tree | ae82a5a3686f2251b57f2233f4df5f7d8b04018e | |
parent | 865f09c6ac8386f408cfc5fed874ea6fff9d78f8 [diff] |
Refresh Android.bp, cargo2android.json, TEST_MAPPING. Test: None Change-Id: Id05442920b109dd1be18cb73cacb4a41f9aa4f3a
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.