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

Fixed SetMessageID message ID generation #75

Merged
merged 4 commits into from Oct 26, 2022

Conversation

wneessen
Copy link
Owner

This PR closes #74. It makes sure that generated message IDs via SetMessageID() are truly random and unique

This fix makes sure that generated message IDs via SetMessageID() are truly random and unique
@wneessen wneessen linked an issue Oct 26, 2022 that may be closed by this pull request
@wneessen wneessen added hacktoberfest PRs are requested to be eligible to participate in Hacktoberfest hacktoberfest-accepted PR has been accepted to participate in Hacktoberfest labels Oct 26, 2022
@codecov-commenter
Copy link

codecov-commenter commented Oct 26, 2022

Codecov Report

Merging #75 (5bf0c10) into main (c321aee) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #75   +/-   ##
=======================================
  Coverage   84.58%   84.58%           
=======================================
  Files          12       12           
  Lines        1330     1330           
=======================================
  Hits         1125     1125           
  Misses        141      141           
  Partials       64       64           
Impacted Files Coverage Δ
msg.go 86.41% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Since the Windows tests were still failing, we are replacing the random number generation with math/rand with random string generation via crypto/rand
@wneessen wneessen merged commit 4250eaf into main Oct 26, 2022
@wneessen wneessen deleted the fix/74-messageid-generation-not-random-enough branch October 26, 2022 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest PRs are requested to be eligible to participate in Hacktoberfest hacktoberfest-accepted PR has been accepted to participate in Hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MessageID generation not random enough
2 participants