diff options
author | Micael Karlberg <[email protected]> | 2019-05-22 18:36:17 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2019-05-22 18:36:17 +0200 |
commit | 5f1699c81d82e67b561c2759b0220b71a6a8ba80 (patch) | |
tree | fb313a69a654d39158bfc9012511682d0ad5c34f /lib/snmp/src/agent/snmp_standard_mib.erl | |
parent | a66ebde07b7c7e85dd4fa843f1bc9bacc5e452a6 (diff) | |
parent | 3f490bea2e21871f534cdcd49d85314eb35f0164 (diff) | |
download | otp-5f1699c81d82e67b561c2759b0220b71a6a8ba80.tar.gz otp-5f1699c81d82e67b561c2759b0220b71a6a8ba80.tar.bz2 otp-5f1699c81d82e67b561c2759b0220b71a6a8ba80.zip |
Merge branch 'bmk/snmp/20190522/random_to_rand/OTP-15331' into maint
Diffstat (limited to 'lib/snmp/src/agent/snmp_standard_mib.erl')
-rw-r--r-- | lib/snmp/src/agent/snmp_standard_mib.erl | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/snmp/src/agent/snmp_standard_mib.erl b/lib/snmp/src/agent/snmp_standard_mib.erl index bfe471178d..679d2657c6 100644 --- a/lib/snmp/src/agent/snmp_standard_mib.erl +++ b/lib/snmp/src/agent/snmp_standard_mib.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1996-2015. All Rights Reserved. +%% Copyright Ericsson AB 1996-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. @@ -27,6 +27,7 @@ -include("snmp_types.hrl"). -include("STANDARD-MIB.hrl"). +-include("snmpa_internal.hrl"). -define(VMODULE,"STANDARD-MIB"). -include("snmp_verbosity.hrl"). @@ -547,10 +548,12 @@ dummy(_Op) -> ok. %%----------------------------------------------------------------- snmp_set_serial_no(new) -> snmp_generic:variable_func(new, {snmpSetSerialNo, volatile}), - random:seed(erlang:phash2([node()]), - erlang:monotonic_time(), - erlang:unique_integer()), - Val = random:uniform(2147483648) - 1, + ?SNMP_RAND_SEED(), + %% rand:seed(exrop, + %% {erlang:phash2([node()]), + %% erlang:monotonic_time(), + %% erlang:unique_integer()}), + Val = rand:uniform(2147483648) - 1, snmp_generic:variable_func(set, Val, {snmpSetSerialNo, volatile}); snmp_set_serial_no(delete) -> |