[AGENT++] [BUG] snmp++v3.2.24: Initialization of rid less random than intended
Jochen Katz
katz at agentpp.com
Wed Jul 28 23:38:12 CEST 2010
Hi,
this will be changed for the next release.
Thanks and regards,
Jochen
Am 27.07.2010 10:08, schrieb Dominik Vogt:
> uxsnmp.cpp:719
>
> current_rid = (rand() % (PDU_MAX_RID - PDU_MIN_RID -1)) + PDU_MIN_RID;
> ^^^^
>
> This should be +1 to get a random number in the full range of allowed
> rids. The current code generates a number between PDU_MIN_RID and
> PDU_MAX_RID - 2.
>
> Ciao
>
> Dominik ^_^ ^_^
More information about the AGENTPP
mailing list