aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/diameter_transport_SUITE.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2015-08-04 23:46:29 +0200
committerAnders Svensson <[email protected]>2015-08-05 10:17:19 +0200
commit96d63dca845e18f86488db9d8dfb33eb76ad0467 (patch)
tree5a7b1f6f5f1fd84ff21b6280c04fc8f9a3be5cd0 /lib/diameter/test/diameter_transport_SUITE.erl
parent9c0f2f2ce3ed040b3963d5b00cad0276c276d590 (diff)
downloadotp-96d63dca845e18f86488db9d8dfb33eb76ad0467.tar.gz
otp-96d63dca845e18f86488db9d8dfb33eb76ad0467.tar.bz2
otp-96d63dca845e18f86488db9d8dfb33eb76ad0467.zip
Simplify time manipulation
By doing away with more wrapping that the parent commit started to remove.
Diffstat (limited to 'lib/diameter/test/diameter_transport_SUITE.erl')
-rw-r--r--lib/diameter/test/diameter_transport_SUITE.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/diameter/test/diameter_transport_SUITE.erl b/lib/diameter/test/diameter_transport_SUITE.erl
index 78bddbd1cf..40f713a550 100644
--- a/lib/diameter/test/diameter_transport_SUITE.erl
+++ b/lib/diameter/test/diameter_transport_SUITE.erl
@@ -53,7 +53,7 @@
%% Receive a message.
-define(RECV(Pat, Ret), receive Pat -> Ret end).
--define(RECV(Pat), ?RECV(Pat, diameter_util:timestamp())).
+-define(RECV(Pat), ?RECV(Pat, now())).
%% Sockets are opened on the loopback address.
-define(ADDR, {127,0,0,1}).
@@ -335,7 +335,7 @@ make_msg() ->
%% crypto:rand_bytes/1 isn't available on all platforms (since openssl
%% isn't) so roll our own.
rand_bytes(N) ->
- random:seed(diameter_util:seed()),
+ random:seed(now()),
rand_bytes(N, <<>>).
rand_bytes(0, Bin) ->
@@ -416,7 +416,7 @@ gen_accept(tcp, LSock) ->
gen_send(sctp, Sock, Bin) ->
{OS, _IS, Id} = getr(assoc),
- {_, _, Us} = diameter_util:timestamp(),
+ {_, _, Us} = now(),
gen_sctp:send(Sock, Id, Us rem OS, Bin);
gen_send(tcp, Sock, Bin) ->
gen_tcp:send(Sock, Bin).