diff options
author | Ingela Anderton Andin <ingela@erlang.org> | 2019-11-29 08:31:16 +0100 |
---|---|---|
committer | Ingela Anderton Andin <ingela@erlang.org> | 2019-11-29 08:31:16 +0100 |
commit | 87ac04ace452d857d0980949e588b11cc028bf04 (patch) | |
tree | 05fe472aa54b788474195146938d8739c26247fa | |
parent | 5e984bd0f2ef933b25ee5a4199cb0934aa87016f (diff) | |
parent | 5ce23774834ef3c523862bd0787d884b107dbb79 (diff) | |
download | erlang-87ac04ace452d857d0980949e588b11cc028bf04.tar.gz |
Merge branch 'ingela/inets/warnings' into maint
* ingela/inets/warnings:
inets: Remove legacy call to random module
-rw-r--r-- | lib/inets/examples/httpd_load_test/hdlt_ctrl.erl | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/inets/examples/httpd_load_test/hdlt_ctrl.erl b/lib/inets/examples/httpd_load_test/hdlt_ctrl.erl index fcf5b4505f..9e00f0c9d9 100644 --- a/lib/inets/examples/httpd_load_test/hdlt_ctrl.erl +++ b/lib/inets/examples/httpd_load_test/hdlt_ctrl.erl @@ -191,9 +191,6 @@ do_init(Config) -> ServerRoot = filename:join(ServerDir, "server_root"), DocRoot = ServerRoot, %% Not really used in this test - ?DEBUG("randomize setup", []), - randomized_sizes_init(), - %% Start used applications ?DEBUG("ensure crypto started", []), crypto:start(), @@ -1514,9 +1511,6 @@ set_debug_level(Debugs) -> %% there is exact one number between A and B and then %% randomizes that list. -randomized_sizes_init() -> - {A, B, C} = os:timestamp(), - random:seed(A, B, C). randomized_sizes(From, To, Incr) -> L = lists:seq(From, To, Incr), @@ -1526,6 +1520,6 @@ randomized_sizes(From, To, Incr) -> randomized_sizes2(L, N, Len) when N >= Len -> L; randomized_sizes2(L, N, Len) -> - SplitWhere = random:uniform(Len), + SplitWhere = rand:uniform(Len), {A, B} = lists:split(SplitWhere, L), randomized_sizes2(B ++ A, N+1, Len). |