aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/test/mnesia_test_lib.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2015-06-24 07:59:00 +0200
committerDan Gudmundsson <[email protected]>2015-06-30 09:26:49 +0200
commitf940d1cc510b9eb86a2562f190825b17a31acee2 (patch)
tree54363e0cae29626ad0fc33e6dedd993044707646 /lib/mnesia/test/mnesia_test_lib.erl
parent74a95b3d511177a9b35c2b0272b9ca5511b6f750 (diff)
downloadotp-f940d1cc510b9eb86a2562f190825b17a31acee2.tar.gz
otp-f940d1cc510b9eb86a2562f190825b17a31acee2.tar.bz2
otp-f940d1cc510b9eb86a2562f190825b17a31acee2.zip
Remove erlang:now() and random usage in tests
Diffstat (limited to 'lib/mnesia/test/mnesia_test_lib.erl')
-rw-r--r--lib/mnesia/test/mnesia_test_lib.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mnesia/test/mnesia_test_lib.erl b/lib/mnesia/test/mnesia_test_lib.erl
index 035d6bde87..9d3b277e07 100644
--- a/lib/mnesia/test/mnesia_test_lib.erl
+++ b/lib/mnesia/test/mnesia_test_lib.erl
@@ -238,8 +238,8 @@ slave_start_link() ->
slave_start_link(Node) ->
[Local, Host] = node_to_name_and_host(Node),
- {Mega, Sec, Micro} = erlang:now(),
- List = [Local, "_", Mega, "_", Sec, "_", Micro],
+ Count = erlang:unique_integer([positive]),
+ List = [Local, "_", Count],
Name = list_to_atom(lists:concat(List)),
slave_start_link(list_to_atom(Host), Name).