aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_sftp_SUITE.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2016-04-22 10:23:56 +0200
committerIngela Anderton Andin <[email protected]>2016-04-25 11:42:05 +0200
commitaf05855ddc48ae72bb2cfd82ab3fd3ab45238135 (patch)
tree95b5a3023bbd026d881059ab8ff6b276ed33c557 /lib/ssh/test/ssh_sftp_SUITE.erl
parentb0741885a4ce780b653b8ab723b1af9504f12748 (diff)
downloadotp-af05855ddc48ae72bb2cfd82ab3fd3ab45238135.tar.gz
otp-af05855ddc48ae72bb2cfd82ab3fd3ab45238135.tar.bz2
otp-af05855ddc48ae72bb2cfd82ab3fd3ab45238135.zip
ssh: Remove use of crypto:rand_bytes/1
ssh use cases are cryptographical so use crypto:strong_rand_bytes/1 instead.
Diffstat (limited to 'lib/ssh/test/ssh_sftp_SUITE.erl')
-rw-r--r--lib/ssh/test/ssh_sftp_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssh/test/ssh_sftp_SUITE.erl b/lib/ssh/test/ssh_sftp_SUITE.erl
index c4bb02841b..cd6c5f82b9 100644
--- a/lib/ssh/test/ssh_sftp_SUITE.erl
+++ b/lib/ssh/test/ssh_sftp_SUITE.erl
@@ -869,7 +869,7 @@ aes_cbc256_crypto_tar(Config) ->
{"d1",fn("d1",Config)} % Dir
]),
Key = <<"This is a 256 bit key. Boring...">>,
- Ivec0 = crypto:rand_bytes(16),
+ Ivec0 = crypto:strong_rand_bytes(16),
DataSize = 1024, % data_size rem 16 = 0 for aes_cbc
Cinitw = fun() -> {ok, Ivec0, DataSize} end,
@@ -914,7 +914,7 @@ aes_ctr_stream_crypto_tar(Config) ->
{"d1",fn("d1",Config)} % Dir
]),
Key = <<"This is a 256 bit key. Boring...">>,
- Ivec0 = crypto:rand_bytes(16),
+ Ivec0 = crypto:strong_rand_bytes(16),
Cinitw = Cinitr = fun() -> {ok, crypto:stream_init(aes_ctr,Key,Ivec0)} end,