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

Function GeneratePassword

test/brpc_redis_unittest.cpp:361–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361static std::string GeneratePassword() {
362 std::string result;
363 result.reserve(12);
364 for (size_t i = 0; i < result.capacity(); ++i) {
365 result.push_back(butil::fast_rand_in('a', 'z'));
366 }
367 return result;
368}
369
370TEST_F(RedisTest, auth) {
371 if (g_redis_pid < 0) {

Callers 1

TEST_FFunction · 0.85

Calls 4

fast_rand_inFunction · 0.85
reserveMethod · 0.45
capacityMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected