diff options
author | Hans Bolinder <[email protected]> | 2015-11-04 13:04:49 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2015-11-04 13:04:49 +0100 |
commit | 4ddb88db95442d18abe654ba1ff788e98eebe375 (patch) | |
tree | 001b76ff15e5686da1527a65aefa43874399c782 /lib/stdlib/doc/src/random.xml | |
parent | 4f085471fc4e1886bd7549cf135e7038a87e6a8e (diff) | |
parent | 15770ab1b5587e890b7e4f557a4803291a37d2f8 (diff) | |
download | otp-4ddb88db95442d18abe654ba1ff788e98eebe375.tar.gz otp-4ddb88db95442d18abe654ba1ff788e98eebe375.tar.bz2 otp-4ddb88db95442d18abe654ba1ff788e98eebe375.zip |
Merge branch 'hb/correct_doc_tags' into maint
* hb/correct_doc_tags:
[erl_docgen] Correct documentation
[dialyzer] Correct documentation
[hipe] Correct documentation
[test_server] Correct documentation
[tools] Correct documentation
[erts] Correct documentation
[stdlib] Correct documentation
[kernel] Correct documentation
Diffstat (limited to 'lib/stdlib/doc/src/random.xml')
-rw-r--r-- | lib/stdlib/doc/src/random.xml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/stdlib/doc/src/random.xml b/lib/stdlib/doc/src/random.xml index 91a4012ce9..a1bf67d332 100644 --- a/lib/stdlib/doc/src/random.xml +++ b/lib/stdlib/doc/src/random.xml @@ -76,9 +76,15 @@ dictionary, and returns the old state.</p> <p>One easy way of obtaining a unique value to seed with is to:</p> <code type="none"> - random:seed(<seealso marker="erts:erlang#phash2/1">erlang:phash2</seealso>([<seealso marker="erts:erlang#node/0">node()</seealso>]), - <seealso marker="erts:erlang#monotonic_time/0">erlang:monotonic_time()</seealso>, - <seealso marker="erts:erlang#unique_integer/0">erlang:unique_integer()</seealso>)</code> +random:seed(erlang:phash2([node()]), + erlang:monotonic_time(), + erlang:unique_integer())</code> + <p>See <seealso marker="erts:erlang#phash2/1"> + erlang:phash2/1</seealso>, <seealso marker="erts:erlang#node/0"> + node/0</seealso>, <seealso marker="erts:erlang#monotonic_time/0"> + erlang:monotonic_time/0</seealso>, and + <seealso marker="erts:erlang#unique_integer/0"> + erlang:unique_integer/0</seealso>) for details.</p> </desc> </func> <func> |