Java Random Byte Array nextBytes(byte[] bytes)

Here you can find the source of nextBytes(byte[] bytes)

Description

next Bytes

License

Open Source License

Declaration

public static void nextBytes(byte[] bytes) 

Method Source Code


//package com.java2s;
import java.util.Random;

public class Main {
    private static Random rand = new Random();

    public static void nextBytes(byte[] bytes) {
        rand.nextBytes(bytes);/*from w w  w . j  av  a2s .co  m*/
    }
}

Related

  1. generateRandomBytes(int size)
  2. getRandomByteArray(int len)
  3. getRandomBytes()
  4. getRandomBytes(int size)
  5. getRandomBytes(int size)
  6. nextBytes(int count)
  7. nextBytes(int length)
  8. randBytes(int length)
  9. randomByte(byte[] b)