Skip to content

Reload buffer only when secret length is not reached#17

Merged
shivam-deepsource merged 2 commits intomasterfrom
algo-fix
Mar 2, 2022
Merged

Reload buffer only when secret length is not reached#17
shivam-deepsource merged 2 commits intomasterfrom
algo-fix

Conversation

@souvik-deepsource
Copy link
Copy Markdown
Contributor

@souvik-deepsource souvik-deepsource commented Feb 28, 2022

Description

This change improves the secret generation algorithm by not calling the buffer population method when the secret length is met.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Changes in this PR

  • Repositioned the populateBuffer method, to be called when the random buffer loop exits prematurely without completing the secret length

Checklist before merging

(Add to-do for reviewers and you to track, keep the PR in draft until all to-dos are cleared)

  • Tests
  • Code and Readme documentation

Note to reviewers (Optional)

(Anything that the reviewer should keep in mind)

@souvik-deepsource souvik-deepsource changed the title Reload buffer when secret length is not reached Reload buffer only when secret length is not reached Feb 28, 2022
@shivam-deepsource shivam-deepsource merged commit 066bc1c into master Mar 2, 2022
@shivam-deepsource shivam-deepsource deleted the algo-fix branch March 2, 2022 06:16
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.

2 participants