RandomNumberGenerator.nextBytes

Generates a byte array of fixed length filled with random data, often useful for generating salts, initialization vectors or other seed data. The length is specified as a configuration value on the underlying implementation. <p/> If you'd like per-invocation control the number of bytes generated, use the {@link #nextBytes(int) nextBytes(int)} method instead.

@return a byte array of fixed length filled with random data. @see #nextBytes(int)

  1. ByteSource nextBytes()
    interface RandomNumberGenerator
    nextBytes
    ()
  2. ByteSource nextBytes(int numBytes)

Meta