From 77039e648c8a62bfc4f0242531d5fd4874b29aad Mon Sep 17 00:00:00 2001 From: Guilherme Andrade Date: Sat, 18 Mar 2017 17:27:35 +0000 Subject: Support cryptographically strong rand plugin --- lib/stdlib/doc/src/rand.xml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'lib/stdlib/doc') diff --git a/lib/stdlib/doc/src/rand.xml b/lib/stdlib/doc/src/rand.xml index 8745e16908..e7a5fb7fab 100644 --- a/lib/stdlib/doc/src/rand.xml +++ b/lib/stdlib/doc/src/rand.xml @@ -120,19 +120,27 @@ S0 = rand:seed_s(exsplus), {SND0, S2} = rand:normal_s(S1), -

This random number generator is not cryptographically - strong. If a strong cryptographic random number generator is - needed, use one of functions in the - crypto - module, for example, - crypto:strong_rand_bytes/1.

+

The builtin random number generator algorithms are not + cryptographically strong. If a cryptographically strong + random number generator is needed, use something like + crypto:rand_seed/0. +

+ + + + + + + + +

Algorithm-dependent state.

@@ -216,7 +224,7 @@ S0 = rand:seed_s(exsplus),

Seeds random number generation with the specifed algorithm and - time-dependent data if AlgOrExpState is an algorithm.

+ time-dependent data if AlgOrStateOrExpState is an algorithm.

Otherwise recreates the exported seed in the process dictionary, and returns the state. See also export_seed/0.

@@ -237,7 +245,7 @@ S0 = rand:seed_s(exsplus), Seed random number generator.

Seeds random number generation with the specifed algorithm and - time-dependent data if AlgOrExpState is an algorithm.

+ time-dependent data if AlgOrStateOrExpState is an algorithm.

Otherwise recreates the exported seed and returns the state. See also export_seed/0.

-- cgit v1.2.3