private static Bytes randomBytes(final Random random, final int size) {
    final byte[] bytes = new byte[size];
    for (int i = 0; i < bytes.length; i++) {
      bytes[i] = (byte) random.nextInt(256);
    }
    return Bytes.wrap(bytes);
  }
Generate a random rlp-encoded value.

@param randomSeed Seed to use for random generation.
@return a random rlp-encoded value
ethereum/rlp/src/test-support/java/org/hyperledger/besu/ethereum/rlp/util/RLPTestUtil.java