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.
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.