aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp
diff options
context:
space:
mode:
authorErland Schönbeck <[email protected]>2015-04-28 15:08:42 +0200
committerErland Schönbeck <[email protected]>2015-04-28 15:08:42 +0200
commit4098e8fc7866c8b79cdd29230c181b6edb0a4889 (patch)
tree69e67f3fea7ff8df3554dd69110ca70be499b9dc /lib/snmp
parent22173c2e4d65e47039975b91015560ae4256b3c1 (diff)
downloadotp-4098e8fc7866c8b79cdd29230c181b6edb0a4889.tar.gz
otp-4098e8fc7866c8b79cdd29230c181b6edb0a4889.tar.bz2
otp-4098e8fc7866c8b79cdd29230c181b6edb0a4889.zip
snmp: Remove deprecated warning for erlang:now in snmpc
Diffstat (limited to 'lib/snmp')
-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)),