byte[] generateSecureRandomBytes(int size){
  SecureRandom secureRandom=new SecureRandom();
  byte[] randomBytes=new byte[size];
  secureRandom.nextBytes(randomBytes);
  return randomBytes;
}

byte [ ] generateSecureRandomBytes ( int size ) { SecureRandom secureRandom = new SecureRandom ( ) ; byte [ ] randomBytes = new byte [ size ] ; secureRandom . nextBytes ( randomBytes ) ; return randomBytes ; }
generates bytearray which is filled with random bytes from securerandom
