aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/doc
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2011-09-07 11:09:43 +0200
committerSverker Eriksson <[email protected]>2011-09-07 11:09:43 +0200
commit02b8d9b4d669ae215b1c2423fa961db1b69a487f (patch)
treef7a1b27dc3a243da40dc2e98d888e6eb245e9342 /lib/crypto/doc
parent22dae863060e0d66fa268f6d1cd4d6f084b850ab (diff)
downloadotp-02b8d9b4d669ae215b1c2423fa961db1b69a487f.tar.gz
otp-02b8d9b4d669ae215b1c2423fa961db1b69a487f.tar.bz2
otp-02b8d9b4d669ae215b1c2423fa961db1b69a487f.zip
[crypto] Fix rand_uniform for negative values
Also let it throw badarg if 'Hi' is not larger than 'Lo'.
Diffstat (limited to 'lib/crypto/doc')
-rw-r--r--lib/crypto/doc/src/crypto.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/doc/src/crypto.xml b/lib/crypto/doc/src/crypto.xml
index 179ba4498c..96c4a072e1 100644
--- a/lib/crypto/doc/src/crypto.xml
+++ b/lib/crypto/doc/src/crypto.xml
@@ -744,7 +744,7 @@ Mpint() = <![CDATA[<<ByteLen:32/integer-big, Bytes:ByteLen/binary>>]]>
<p>Generate a random number <c><![CDATA[N, Lo =< N < Hi.]]></c> Uses the
<c>crypto</c> library pseudo-random number generator. The
arguments (and result) can be either erlang integers or binary
- multi-precision integers.</p>
+ multi-precision integers. <c>Hi</c> must be larger than <c>Lo</c>.</p>
</desc>
</func>
<func>