|author||android-build-team Robot <firstname.lastname@example.org>||Thu Feb 18 02:04:36 2021 +0000|
|committer||android-build-team Robot <email@example.com>||Thu Feb 18 02:04:36 2021 +0000|
Snap for 7152399 from 9e8f2fabf21a74757dd5bcabe42e7a7300e28196 to sc-d1-release Change-Id: I14aec7adacdf5ac216c5a9215a113250a1f9a734
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
[^1]: Marsaglia, George (July 2003). “Xorshift RNGs”. Journal of Statistical Software. Vol. 8 (Issue 14).
no_std compatible. It does not require any functionality outside of the
core lib, thus there are no features to configure.
serde1 feature includes implementations of
Deserialize for the included RNGs.
rand_xorshift is distributed under the terms of both the MIT license and the Apache License (Version 2.0).