aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_cipher.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2012-08-22 09:58:22 +0200
committerIngela Anderton Andin <[email protected]>2012-08-22 14:00:47 +0200
commit8aa39bf90a213f086b8e4990e77570ddb6748496 (patch)
treeb5f6e265a0b3711453fc04570f36551248862154 /lib/ssl/src/ssl_cipher.erl
parentc9db6bc867ecf1bf581849dd3290b0c9a40e1961 (diff)
downloadotp-8aa39bf90a213f086b8e4990e77570ddb6748496.tar.gz
otp-8aa39bf90a213f086b8e4990e77570ddb6748496.tar.bz2
otp-8aa39bf90a213f086b8e4990e77570ddb6748496.zip
ssl: Use crypto:strong_rand_bytes if possible
Diffstat (limited to 'lib/ssl/src/ssl_cipher.erl')
-rw-r--r--lib/ssl/src/ssl_cipher.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_cipher.erl b/lib/ssl/src/ssl_cipher.erl
index 358972f522..80df8fd5cb 100644
--- a/lib/ssl/src/ssl_cipher.erl
+++ b/lib/ssl/src/ssl_cipher.erl
@@ -690,7 +690,7 @@ get_padding_aux(BlockSize, PadLength) ->
random_iv(IV) ->
IVSz = byte_size(IV),
- crypto:rand_bytes(IVSz).
+ ssl:random_bytes(IVSz).
next_iv(Bin, IV) ->
BinSz = byte_size(Bin),