aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_config.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2015-03-11 09:41:11 +0100
committerRickard Green <[email protected]>2015-03-20 15:28:54 +0100
commita219c06f31e082449a1e001c051661370fa00a5d (patch)
tree0b99ba0aabbee1d970ffe48b7fe599b536382d1e /lib/common_test/src/ct_config.erl
parentd2c19c15b887d44b92fa36c5f49d7f2ff755f8ad (diff)
downloadotp-a219c06f31e082449a1e001c051661370fa00a5d.tar.gz
otp-a219c06f31e082449a1e001c051661370fa00a5d.tar.bz2
otp-a219c06f31e082449a1e001c051661370fa00a5d.zip
Replace all calls to now/0 in CT with new time API functions
Diffstat (limited to 'lib/common_test/src/ct_config.erl')
-rw-r--r--lib/common_test/src/ct_config.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/common_test/src/ct_config.erl b/lib/common_test/src/ct_config.erl
index 5c80a299f8..4b92ca6f8f 100644
--- a/lib/common_test/src/ct_config.erl
+++ b/lib/common_test/src/ct_config.erl
@@ -693,8 +693,7 @@ make_crypto_key(String) ->
{[K1,K2,K3],IVec}.
random_bytes(N) ->
- {A,B,C} = now(),
- random:seed(A, B, C),
+ random:seed(os:timestamp()),
random_bytes_1(N, []).
random_bytes_1(0, Acc) -> Acc;