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
builtins: add gen_random_bytes builtin function #110107
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh heh you beat me to it. LGTM, just had one small comment!
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @rafiss)
pkg/sql/logictest/testdata/logic_test/pgcrypto_builtins
line 321 at r1 (raw file):
query I SELECT length(gen_random_bytes(10))
Do we maybe also want to run this query twice, store the results, and then check that they are not identical as a proxy for testing randomness?
Release note (sql change): Added the gen_random_bytes builtin function, which generates cryptographically secure random bytes.
7392473
to
c075f6c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tftr!
bors r+
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @andyyang890)
pkg/sql/logictest/testdata/logic_test/pgcrypto_builtins
line 321 at r1 (raw file):
Previously, andyyang890 (Andy Yang) wrote…
Do we maybe also want to run this query twice, store the results, and then check that they are not identical as a proxy for testing randomness?
done
👎 Rejected by too few approved reviews |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 1 of 0 LGTMs obtained
tftr! bors r+ |
Build succeeded: |
fixes #21001
Release note (sql change): Added the gen_random_bytes builtin function, which generates cryptographically secure random bytes.