tag | 6f2a3eaf954007fb70b6d44983c6f522749505fa | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Apr 29 10:40:01 2024 -0700 |
object | 45f2f6576bfc5a044bee5d08fd0aa8a3a6b27e0c |
aml_tz5_341510070 (11568892,com.google.android.go.tzdata5,com.google.android.tzdata5)
commit | 45f2f6576bfc5a044bee5d08fd0aa8a3a6b27e0c | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed May 10 16:19:07 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed May 10 16:19:07 2023 +0000 |
tree | c762b46095ff8963dddb35228ea8d5ec2ae85738 | |
parent | 264a28ba1bdd01c5addfcc6238982a3babfb1245 [diff] | |
parent | 79be032e51b2439cb8a6309c31bbd0bd9568397a [diff] |
Snap for 10103804 from 79be032e51b2439cb8a6309c31bbd0bd9568397a to mainline-tzdata5-release Change-Id: Ie2cc777b06dcbbb4f897d2bf87b30f67b82a2cfc
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.