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

feature/maybe seed rng #509

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ealvar3z
Copy link
Contributor

  • Implement MaybeSeedRNG for optional deterministic tests
  • Resolve merged conflicts from stash

A similar PR may already be submitted!
Please search among the Pull request before creating one.

If your changes introduce breaking changes, please prefix the title of your pull request with "[BREAKING_CHANGES]". This allows for clear identification of such changes in the 'What's Changed' section on the release page, making it developer-friendly.

Thanks for submitting a pull request! Please provide enough information so that others can review your pull request.

Describe the change
Please provide a clear and concise description of the changes you're proposing. Explain what problem it solves or what feature it adds.

Describe your solution
Describe how your changes address the problem or how they add the feature. This should include a brief description of your approach and any new libraries or dependencies you're using.

Tests
Briefly describe how you have tested these changes.

Additional context
Add any other context or screenshots or logs about your pull request here. If the pull request relates to an open issue, please link to it.

Issue: #487

- Add randomized fields to Engine structs in tests
- Implement cryptographically secure random utility functions
- Address golangci-lint warnings
- Avoid big package
- Use strings.Builder for efficient string concatenation
- Set default string length to 10
- Handle errors from rand.Read()

Resolves: sashabaranov#487
- Memory efficient solution for RandomInt func
- Improve error handling by logging them vice returning the type
- Use RandomInt() instead

Resolves: sashabaranov#487
@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

Merging #509 (a85dd45) into master (3589837) will increase coverage by 0.28%.
Report is 7 commits behind head on master.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #509      +/-   ##
==========================================
+ Coverage   97.30%   97.58%   +0.28%     
==========================================
  Files          18       19       +1     
  Lines         780      871      +91     
==========================================
+ Hits          759      850      +91     
  Misses         15       15              
  Partials        6        6              
Files Coverage Δ
embeddings.go 100.00% <100.00%> (ø)

... and 14 files with indirect coverage changes

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

Successfully merging this pull request may close these issues.

1 participant