MCPcopy Create free account
hub / github.com/apache/brpc / RandBytesAsString

Function RandBytesAsString

src/butil/rand_util.cc:64–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64std::string RandBytesAsString(size_t length) {
65 DCHECK_GT(length, 0u);
66 std::string result;
67 RandBytes(WriteInto(&result, length + 1), length);
68 return result;
69}
70
71} // namespace butil

Callers 1

TESTFunction · 0.85

Calls 2

RandBytesFunction · 0.85
WriteIntoFunction · 0.85

Tested by 1

TESTFunction · 0.68