SecureRandom.nextBytes

Generates a user-specified number of random bytes.

<p> If a call to {@code setSeed} had not occurred previously, the first call to this method forces this SecureRandom object to seed itself. This self-seeding will not occur if {@code setSeed} was previously called.

@param bytes the array to be filled in with random bytes.

class SecureRandom
void
nextBytes
(
byte[] bytes
)

Meta