Skip to content

feat: add GenerateRandomKeySafe returning explicit error - #99

Open
AdamMagued wants to merge 1 commit into
gorilla:mainfrom
AdamMagued:fix-issue-84
Open

AdamMagued wants to merge 1 commit into
gorilla:mainfrom
AdamMagued:fix-issue-84

Conversation

@AdamMagued

Copy link
Copy Markdown

Fixes #84

Summary

  • Added GenerateRandomKeySafe returning ([]byte, error) to provide callers explicit error propagation when CSPRNG reader fails.
  • Added unit tests covering key generation success and edge cases.

Verified via container sandbox test suite.

Signed-off-by: AdamMagued <adamismailmageud@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Change signature of GenerateRandomKey

1 participant