aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/doc/src/random.xml
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2015-10-12 14:28:39 +0200
committerHans Bolinder <[email protected]>2015-11-04 13:03:56 +0100
commitde432f4ea9a8c29c931f30dd504662be1a01464d (patch)
treea23d49aac85900a7a03fc63ece2370950327020f /lib/stdlib/doc/src/random.xml
parent02aca536aec93edd799d67615e47bdb7b5babf4a (diff)
downloadotp-de432f4ea9a8c29c931f30dd504662be1a01464d.tar.gz
otp-de432f4ea9a8c29c931f30dd504662be1a01464d.tar.bz2
otp-de432f4ea9a8c29c931f30dd504662be1a01464d.zip
[stdlib] Correct documentation
Fix mistakes found by 'xmllint'.
Diffstat (limited to 'lib/stdlib/doc/src/random.xml')
-rw-r--r--lib/stdlib/doc/src/random.xml12
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>