MCPcopy Create free account
hub / github.com/apache/arrow / RandomChars

Method RandomChars

cpp/src/arrow/filesystem/gcsfs_test.cc:260–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258
259 private:
260 std::string RandomChars(std::size_t count) {
261 const auto fillers = std::string("abcdefghijlkmnopqrstuvwxyz0123456789");
262 std::uniform_int_distribution<std::size_t> d(0, fillers.size() - 1);
263 std::string s;
264 std::generate_n(std::back_inserter(s), count, [&] { return fillers[d(generator_)]; });
265 return s;
266 }
267
268 std::mt19937_64 generator_;
269 std::string bucket_name_;

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected