aboutsummaryrefslogtreecommitdiffstats
path: root/lib/orber/src/orber_socket.erl
diff options
context:
space:
mode:
authorLars Thorsen <[email protected]>2015-04-29 07:13:51 +0200
committerLars Thorsen <[email protected]>2015-05-08 12:32:15 +0200
commitc84295904be29cbcbd3f91d009db91eca94ff158 (patch)
tree95ce646dd9653536b1fbda6e1de2211bff6e252f /lib/orber/src/orber_socket.erl
parent9ca2c2fcc364ee320c61281cf0e89fdd120617c9 (diff)
downloadotp-c84295904be29cbcbd3f91d009db91eca94ff158.tar.gz
otp-c84295904be29cbcbd3f91d009db91eca94ff158.tar.bz2
otp-c84295904be29cbcbd3f91d009db91eca94ff158.zip
[orber] Use rand instead of random
Diffstat (limited to 'lib/orber/src/orber_socket.erl')
-rw-r--r--lib/orber/src/orber_socket.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/orber/src/orber_socket.erl b/lib/orber/src/orber_socket.erl
index 8ee1611c65..4567728693 100644
--- a/lib/orber/src/orber_socket.erl
+++ b/lib/orber/src/orber_socket.erl
@@ -167,7 +167,6 @@ multi_connect([CurrentPort|Rest], Retries, ssl, Host, Port, Options, Timeout) ->
get_port_sequence(Min, Max) ->
case orber_env:iiop_out_ports_random() of
true ->
- random:seed(rlang:monotonic_time(), erlang:current_time_offset(), rlang:unique_integer()),
Seq = lists:seq(Min, Max),
random_sequence((Max - Min) + 1, Seq, []);
_ ->
@@ -177,7 +176,7 @@ get_port_sequence(Min, Max) ->
random_sequence(0, _, Acc) ->
Acc;
random_sequence(Length, Seq, Acc) ->
- Nth = random:uniform(Length),
+ Nth = rand:uniform(Length),
Value = lists:nth(Nth, Seq),
NewSeq = lists:delete(Value, Seq),
random_sequence(Length-1, NewSeq, [Value|Acc]).