aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2019-01-08 14:08:14 +0100
committerLukas Larsson <[email protected]>2019-01-15 16:53:44 +0100
commit75a88f6ba479be85e576c1db303eaed9a92f8979 (patch)
treed6111c0604b56755f119bbd5f59a0e0d25940ad3 /lib/inets
parent2d39090ed603805b1a651a7782492cd143bffbd9 (diff)
downloadotp-75a88f6ba479be85e576c1db303eaed9a92f8979.tar.gz
otp-75a88f6ba479be85e576c1db303eaed9a92f8979.tar.bz2
otp-75a88f6ba479be85e576c1db303eaed9a92f8979.zip
inets: Fix crypto:rand_bytes usage in benchmarks
Diffstat (limited to 'lib/inets')
-rw-r--r--lib/inets/test/httpd_bench_SUITE.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/inets/test/httpd_bench_SUITE.erl b/lib/inets/test/httpd_bench_SUITE.erl
index 4b549dcb5b..aeaf99204d 100644
--- a/lib/inets/test/httpd_bench_SUITE.erl
+++ b/lib/inets/test/httpd_bench_SUITE.erl
@@ -499,8 +499,8 @@ start_dummy("http"= Protocol, Config) ->
Conf = [
%%{big, filename:join(DataDir, "1M_file")},
%%{small, filename:join(DataDir, "1k_file")},
- {big, {gen, crypto:rand_bytes(1000000)}},
- {small, {gen, crypto:rand_bytes(1000)}},
+ {big, {gen, crypto:strong_rand_bytes(1000000)}},
+ {small, {gen, crypto:strong_rand_bytes(1000)}},
{http_version, HTTPVersion},
{keep_alive, ?config(keep_alive, Config)}
],
@@ -519,8 +519,8 @@ start_dummy("https" = Protocol, Config) ->
Opts = [{active, true}, {nodelay, true}, {reuseaddr, true} | SSLOpts],
Conf = [%%{big, filename:join(DataDir, "1M_file")},
%%{small, filename:join(DataDir, "1k_file")},
- {big, {gen, crypto:rand_bytes(1000000)}},
- {small, {gen, crypto:rand_bytes(1000)}},
+ {big, {gen, crypto:strong_rand_bytes(1000000)}},
+ {small, {gen, crypto:strong_rand_bytes(1000)}},
{http_version, HTTPVersion},
{keep_alive, ?config(keep_alive, Config)}
],