Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetRandom() in Integer32 was setting very high high value and its getting rejected by some SNMP Devices #5

Open
mspratap6 opened this issue Oct 26, 2018 · 0 comments

Comments

@mspratap6
Copy link

During my uses of this library i found that some devices was not returning same request id in response, this was due to SetRandom() was setting very high value thus requestid to server was getting set as 0.

to fix this i have changed

                public void SetRandom()
                {
                        Random rand = new Random();
-                       _value = rand.Next();
+                       _value = rand.Next(0, 9999);
                }

will further analyse this issue then will create a pull request for the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant