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_view_based_acm_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_view_based_acm_mib.erl')
-rw-r--r-- | lib/snmp/src/agent/snmp_view_based_acm_mib.erl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/snmp/src/agent/snmp_view_based_acm_mib.erl b/lib/snmp/src/agent/snmp_view_based_acm_mib.erl index c6eeb7cea2..56b5d96142 100644 --- a/lib/snmp/src/agent/snmp_view_based_acm_mib.erl +++ b/lib/snmp/src/agent/snmp_view_based_acm_mib.erl @@ -48,6 +48,7 @@ -include("SNMPv2-TC.hrl"). -include("SNMP-VIEW-BASED-ACM-MIB.hrl"). -include("snmpa_vacm.hrl"). +-include("snmpa_internal.hrl"). -define(VMODULE,"VACM-MIB"). @@ -860,10 +861,12 @@ vacmViewSpinLock(print) -> vacmViewSpinLock(new) -> snmp_generic:variable_func(new, volatile_db(vacmViewSpinLock)), - 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, volatile_db(vacmViewSpinLock)); vacmViewSpinLock(delete) -> |