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

Function random_string

cpp/src/arrow/testing/util.cc:82–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82std::string random_string(int64_t n, uint32_t seed) {
83 std::string s;
84 s.resize(static_cast<size_t>(n));
85 random_bytes(n, seed, reinterpret_cast<uint8_t*>(&s[0]));
86 return s;
87}
88
89void random_ascii(int64_t n, uint32_t seed, uint8_t* out) {
90 rand_uniform_int(n, seed, static_cast<int32_t>('A'), static_cast<int32_t>('z'), out);

Callers 1

TestOpenOutputStreamMethod · 0.85

Calls 2

resizeMethod · 0.80
random_bytesFunction · 0.70

Tested by 1

TestOpenOutputStreamMethod · 0.68