Skip to content
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

Open
tabatkins opened this issue Apr 23, 2024 · 0 comments
Open

Random.bytes()? #2

tabatkins opened this issue Apr 23, 2024 · 0 comments

Comments

@tabatkins
Copy link
Collaborator

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.

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

No branches or pull requests

1 participant