aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorErland Schönbeck <[email protected]>2015-04-29 13:18:07 +0200
committerErland Schönbeck <[email protected]>2015-04-29 13:18:07 +0200
commit65cd6574a37af1dfcc01fc4cc9681b4b758f1284 (patch)
tree72960a10c37a3c0ac798d0c0306e8556b2c2faa0 /lib
parent8adbf1a5407dbb8b64070bddbea0bb364e759dd0 (diff)
parent4098e8fc7866c8b79cdd29230c181b6edb0a4889 (diff)
downloadotp-65cd6574a37af1dfcc01fc4cc9681b4b758f1284.tar.gz
otp-65cd6574a37af1dfcc01fc4cc9681b4b758f1284.tar.bz2
otp-65cd6574a37af1dfcc01fc4cc9681b4b758f1284.zip
Merge branch 'erland/OTP18/snmp/time/OTP-12452'
* erland/OTP18/snmp/time/OTP-12452: snmp: Remove deprecated warning for erlang:now in snmpc
Diffstat (limited to 'lib')
-rw-r--r--lib/snmp/src/compile/snmpc.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/snmp/src/compile/snmpc.erl b/lib/snmp/src/compile/snmpc.erl
index 2f065dddac..e7839c0792 100644
--- a/lib/snmp/src/compile/snmpc.erl
+++ b/lib/snmp/src/compile/snmpc.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1997-2013. All Rights Reserved.
+%% Copyright Ericsson AB 1997-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
@@ -409,8 +409,9 @@ get_verbosity(Options) ->
%%----------------------------------------------------------------------
init(From, MibFileName, Options) ->
- {A,B,C} = now(),
- random:seed(A,B,C),
+ random:seed(erlang:phash2([node()]),
+ erlang:monotonic_time(),
+ erlang:unique_integer()),
put(options, Options),
put(verbosity, get_verbosity(Options)),
put(description, get_description(Options)),