diff options
author | Raimo Niskanen <[email protected]> | 2018-06-18 10:49:41 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2018-09-13 13:35:14 +0200 |
commit | ae074a6d4ed9a056d6687b2736be28a9dcc0649d (patch) | |
tree | 5d5ef8c97460c73ab8a6d7eb7a61e524051eb61f /lib/stdlib/doc/src/rand.xml | |
parent | c4408318c97be75915b3dff23a933bbc4b5c2046 (diff) | |
download | otp-ae074a6d4ed9a056d6687b2736be28a9dcc0649d.tar.gz otp-ae074a6d4ed9a056d6687b2736be28a9dcc0649d.tar.bz2 otp-ae074a6d4ed9a056d6687b2736be28a9dcc0649d.zip |
Improve seeding methods
Diffstat (limited to 'lib/stdlib/doc/src/rand.xml')
-rw-r--r-- | lib/stdlib/doc/src/rand.xml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/stdlib/doc/src/rand.xml b/lib/stdlib/doc/src/rand.xml index 5f1ec84786..25eec216ef 100644 --- a/lib/stdlib/doc/src/rand.xml +++ b/lib/stdlib/doc/src/rand.xml @@ -274,6 +274,31 @@ tests. We suggest to use a sign test to extract a random Boolean value.</pre> </desc> </datatype> <datatype> + <name name="seed"/> + <desc> + <p> + A seed value for the generator. + </p> + <p> + A list of integers sets the generator's internal state directly, + after algorithm-dependent checks of the value + and masking to the proper word size. + </p> + <p> + An integer is used as the initial state for a SplitMix64 generator. + The output values of that is then used for setting + the generator's internal state + after masking to the proper word size + and if needed avoiding zero values. + </p> + <p> + A traditional 3-tuple of integers seed is passed through + algorithm-dependent hashing functions to create + the generator's initial state. + </p> + </desc> + </datatype> + <datatype> <name name="exrop_state"/> <desc><p>Algorithm specific internal state</p></desc> </datatype> |