commit | 7dac338b69d4020762df7802253c24239944ee3b | [log] [tgz] |
---|---|---|
author | Martin Geisler <mgeisler@google.com> | Tue Apr 16 16:12:17 2024 +0200 |
committer | Martin Geisler <mgeisler@google.com> | Tue Apr 16 16:12:17 2024 +0200 |
tree | 1c36fb2f8cd2e3bf70cd79017f68450086d0ebbc | |
parent | 0dd180cc0faf2736ec64bb8c4ce3d3e4f64f1824 [diff] |
Remove bincode blocklist We no longer need this after bincode was imported in b/330683225. Bug: 333560480 Test: atest --host rand_xorshift_test_tests_mod Change-Id: I6d376ae11f6d077ab2136f47e727cb95604c967e
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.