aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cosProperty/src/cosProperty.erl
diff options
context:
space:
mode:
authorLars Thorsen <[email protected]>2015-05-08 12:41:17 +0200
committerLars Thorsen <[email protected]>2015-05-08 12:41:17 +0200
commit4c1326cff025c3757260063ce2ebac7ab2d76378 (patch)
tree3ceb52fc14d5211b2b78786d2e2117f6942f2491 /lib/cosProperty/src/cosProperty.erl
parent2e90dc9905de1e2817377fc2cfbd712ad8c802d0 (diff)
parent2a2d6181184ccde3bc929981eeee662203142238 (diff)
downloadotp-4c1326cff025c3757260063ce2ebac7ab2d76378.tar.gz
otp-4c1326cff025c3757260063ce2ebac7ab2d76378.tar.bz2
otp-4c1326cff025c3757260063ce2ebac7ab2d76378.zip
Merge branch 'lars/remove_now/OTP-12687'
* lars/remove_now/OTP-12687: [orber, cos*] Remove usage of erlang:now() in test suites [orber] Use rand instead of random [orber, cos*] Bump versions and update dependencies in app file [orber, cos*] Remove usage of erlang:now()
Diffstat (limited to 'lib/cosProperty/src/cosProperty.erl')
-rw-r--r--lib/cosProperty/src/cosProperty.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/cosProperty/src/cosProperty.erl b/lib/cosProperty/src/cosProperty.erl
index 2368ee3db6..57c35dedf9 100644
--- a/lib/cosProperty/src/cosProperty.erl
+++ b/lib/cosProperty/src/cosProperty.erl
@@ -2,7 +2,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2000-2009. All Rights Reserved.
+%% Copyright Ericsson AB 2000-2015. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -406,8 +406,9 @@ type_check(Obj, Mod) ->
%% Effect :
%%------------------------------------------------------------
create_name(Type) ->
- {MSec, Sec, USec} = erlang:now(),
- lists:concat(['oe_',node(),'_',Type,'_',MSec, '_', Sec, '_', USec]).
+ Time = erlang:system_time(),
+ Unique = erlang:unique_integer([positive]),
+ lists:concat(['oe_',node(),'_',Type,'_',Time,'_',Unique]).
%%--------------- END OF MODULE ------------------------------