aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/diameter_codec_test.erl
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2015-08-13 12:34:03 +0200
committerErlang/OTP <[email protected]>2015-08-13 12:34:03 +0200
commit2c7132e3f6dc670a177aac804fe12702dbc9ed7d (patch)
treef684c2a7881b2fb3eb44312df3770432de01b86d /lib/diameter/test/diameter_codec_test.erl
parent0c21fb612b736f53dcc04face42bd106c50287ae (diff)
parent96d63dca845e18f86488db9d8dfb33eb76ad0467 (diff)
downloadotp-2c7132e3f6dc670a177aac804fe12702dbc9ed7d.tar.gz
otp-2c7132e3f6dc670a177aac804fe12702dbc9ed7d.tar.bz2
otp-2c7132e3f6dc670a177aac804fe12702dbc9ed7d.zip
Merge branch 'anders/diameter/17/time/OTP-12926' into maint-17
* anders/diameter/17/time/OTP-12926: Simplify time manipulation Remove use of monotonic time in pre-18 code Remove unnecessary redefinition of erlang:max/2
Diffstat (limited to 'lib/diameter/test/diameter_codec_test.erl')
-rw-r--r--lib/diameter/test/diameter_codec_test.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/diameter/test/diameter_codec_test.erl b/lib/diameter/test/diameter_codec_test.erl
index 5f1dbfbd61..17f5833101 100644
--- a/lib/diameter/test/diameter_codec_test.erl
+++ b/lib/diameter/test/diameter_codec_test.erl
@@ -229,7 +229,7 @@ v(Max, Ord, E)
when Ord =< Max ->
diameter_enum:to_list(E);
v(Max, Ord, E) ->
- random:seed(diameter_util:seed()),
+ random:seed(now()),
v(Max, Ord, E, []).
v(0, _, _, Acc) ->
@@ -522,7 +522,7 @@ random(Mn,Mx) ->
seed(undefined) ->
put({?MODULE, seed}, true),
- random:seed(diameter_util:seed());
+ random:seed(now());
seed(true) ->
ok.