aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/compile/snmpc.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-05-07 14:59:22 +0200
committerMicael Karlberg <[email protected]>2019-05-22 18:21:02 +0200
commit3f490bea2e21871f534cdcd49d85314eb35f0164 (patch)
treeedcf27f43e6589e1681736baf16d4c9b4c334b9c /lib/snmp/src/compile/snmpc.erl
parent6d955c8377f4df9c215424349050b38b8c7628b4 (diff)
downloadotp-3f490bea2e21871f534cdcd49d85314eb35f0164.tar.gz
otp-3f490bea2e21871f534cdcd49d85314eb35f0164.tar.bz2
otp-3f490bea2e21871f534cdcd49d85314eb35f0164.zip
[snmp] Replaced usage of random with rand
Use of the deprecated module random has been replaced by the module rand. OTP-15331
Diffstat (limited to 'lib/snmp/src/compile/snmpc.erl')
-rw-r--r--lib/snmp/src/compile/snmpc.erl11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/snmp/src/compile/snmpc.erl b/lib/snmp/src/compile/snmpc.erl
index c810bfcd41..4249799195 100644
--- a/lib/snmp/src/compile/snmpc.erl
+++ b/lib/snmp/src/compile/snmpc.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1997-2018. All Rights Reserved.
+%% Copyright Ericsson AB 1997-2019. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -31,6 +31,7 @@
-export([init/3]).
-include_lib("stdlib/include/erl_compile.hrl").
+-include_lib("snmp/src/app/snmp_internal.hrl").
-include("snmp_types.hrl").
-include("snmpc.hrl").
-include("snmpc_lib.hrl").
@@ -413,9 +414,11 @@ get_verbosity(Options) ->
%%----------------------------------------------------------------------
init(From, MibFileName, Options) ->
- random:seed(erlang:phash2([node()]),
- erlang:monotonic_time(),
- erlang:unique_integer()),
+ ?SNMP_RAND_SEED(),
+ %% rand:seed(exrop,
+ %% {erlang:phash2([node()]),
+ %% erlang:monotonic_time(),
+ %% erlang:unique_integer()}),
put(options, Options),
put(verbosity, get_verbosity(Options)),
put(description, get_description(Options)),