aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_benchmark_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_benchmark_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_benchmark_SUITE.erl')
-rw-r--r--lib/ssh/test/ssh_benchmark_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh/test/ssh_benchmark_SUITE.erl b/lib/ssh/test/ssh_benchmark_SUITE.erl
index 8ec1017642..6e1d18cc95 100644
--- a/lib/ssh/test/ssh_benchmark_SUITE.erl
+++ b/lib/ssh/test/ssh_benchmark_SUITE.erl
@@ -104,7 +104,7 @@ init_sftp_dirs(Config) ->
DstDir = filename:join(UserDir, "sftp_dst"),
ok = file:make_dir(DstDir),
N = 100 * 1024*1024,
- ok = file:write_file(filename:join(SrcDir,SrcFile), crypto:rand_bytes(N)),
+ ok = file:write_file(filename:join(SrcDir,SrcFile), crypto:strong_rand_bytes(N)),
[{sftp_src_dir,SrcDir}, {sftp_dst_dir,DstDir}, {src_file,SrcFile}, {sftp_size,N}
| Config].