Here you can find the source of nextBytes(byte[] bytes)
public static void nextBytes(byte[] bytes)
//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*/ } }