aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/doc/src
diff options
context:
space:
mode:
authorDavid Whitlock <[email protected]>2015-11-05 12:47:08 +0700
committerDavid Whitlock <[email protected]>2015-11-06 06:48:41 +0700
commitcdbe44920678d68a9936e1ab504bc1c8aad65847 (patch)
treee2a6b3ca59667486f6e3c6b355034e5746d39fc4 /lib/ssh/doc/src
parent82393fda2f44841663b23c95879212f339a56474 (diff)
downloadotp-cdbe44920678d68a9936e1ab504bc1c8aad65847.tar.gz
otp-cdbe44920678d68a9936e1ab504bc1c8aad65847.tar.bz2
otp-cdbe44920678d68a9936e1ab504bc1c8aad65847.zip
Recommend against using crypto:rand_bytes
Diffstat (limited to 'lib/ssh/doc/src')
-rw-r--r--lib/ssh/doc/src/using_ssh.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh/doc/src/using_ssh.xml b/lib/ssh/doc/src/using_ssh.xml
index 91185a0f6e..3ed862458c 100644
--- a/lib/ssh/doc/src/using_ssh.xml
+++ b/lib/ssh/doc/src/using_ssh.xml
@@ -252,7 +252,7 @@
<code type="erlang">
%% First three parameters depending on which crypto type we select:
Key = &lt;&lt;"This is a 256 bit key. abcdefghi">>,
-Ivec0 = crypto:rand_bytes(16),
+Ivec0 = crypto:strong_rand_bytes(16),
DataSize = 1024, % DataSize rem 16 = 0 for aes_cbc
%% Initialization of the CryptoState, in this case it is the Ivector.