Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
64
std::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
TEST
Function · 0.85
Calls
2
RandBytes
Function · 0.85
WriteInto
Function · 0.85
Tested by
1
TEST
Function · 0.68