Skip to content

implement random_bytes()#2365

Merged
jycor merged 4 commits intomainfrom
james/rand
Mar 4, 2024
Merged

implement random_bytes()#2365
jycor merged 4 commits intomainfrom
james/rand

Conversation

@jycor
Copy link
Copy Markdown
Contributor

@jycor jycor commented Mar 4, 2024

Copy link
Copy Markdown
Contributor

@fulghum fulghum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Just a couple very minor comments.

Comment on lines +30 to +31
// RandomBytes returns the random_bytes of a string or binary content, either in bytes
// or characters.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These comments look like they're copy/paste artifact from the length() function

skip bool
err *errors.Kind
}{
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(minor) maybe another error test case where the length is of a varchar type or something.

@jycor jycor merged commit 6aeab27 into main Mar 4, 2024
@jycor jycor deleted the james/rand branch March 4, 2024 21:19
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