generated from tc39/template-for-proposals
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Random.bytes()
?
#2
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Many of the other languages feature the ability to get random bytes from their random class, often directly filling their equivalent of a byte array. Do we need
Random.bytes()
?There already exists
Crypto.getRandomValues(bytearray)
, but that specifically fills the bytearray with cryptographically strong random numbers.I think this is especially useful for seeded-random, under the assumption that seeded-random and
Random
will get the same methods.The text was updated successfully, but these errors were encountered: