Skip to content

Commit

Permalink
Use rand directly in master because we require Erlang 18.3
Browse files Browse the repository at this point in the history
References #860.
[#122335241]
  • Loading branch information
dumbbell committed Jun 30, 2016
1 parent d600f4b commit 320774f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/priority_queue_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ publish_payload(Ch, Q, PPds) ->
amqp_channel:wait_for_confirms(Ch).

publish_many(_Ch, _Q, 0) -> ok;
publish_many( Ch, Q, N) -> publish1(Ch, Q, rand_compat:uniform(5)),
publish_many( Ch, Q, N) -> publish1(Ch, Q, rand:uniform(5)),
publish_many(Ch, Q, N - 1).

publish1(Ch, Q, P) ->
Expand Down
2 changes: 1 addition & 1 deletion test/unit_inbroker_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ maybe_switch_queue_mode(VQ) ->

random_queue_mode() ->
Modes = [lazy, default],
lists:nth(rand_compat:uniform(length(Modes)), Modes).
lists:nth(rand:uniform(length(Modes)), Modes).

pub_res({_, VQS}) ->
VQS;
Expand Down

0 comments on commit 320774f

Please sign in to comment.