Code example for Random

0
  { 
    ((Log4JLogger)LOG).getLogger().setLevel(Level.ALL);
  } 
 
  static final short DATANODE_NUM = 1;
  static final Random ran = new Random();
  static final byte[] buffer = new byte[1 << 16];
  static final MessageDigest md5;
  static { 
    try { 
      md5 = MessageDigest.getInstance("MD5");
    } catch (NoSuchAlgorithmException e) {
      throw new RuntimeException(e);
    } 
  } 
 
  private static byte[] createFile(FileSystem fs, Path name, long length, 
      short replication, long blocksize) throws IOException {
    final FSDataOutputStream out = fs.create(name, false, 4096,
        replication, blocksize);
Contextual code suggestions in your IDE  Get Codota for Java