String[] (int stringsCount) { ThreadLocalRandom rnd = ThreadLocalRandom.current(); return Stream.generate(() -> { return BlobStorageTestBase.randomString(rnd, rnd.nextInt(0, MAX_RECORD_SIZE)); }) .limit(stringsCount) .toArray(String[]::new); }