blob: fc098b6b2f6317f73865b359d8b42726207beb63 [file] [log] [blame]
#include "net/third_party/http2/platform/impl/random_util_helper_impl.h"
namespace http2 {
namespace test {
Http2String RandomStringImpl(RandomBase* random,
int len,
Http2StringPiece alphabet) {
Http2String random_string;
random_string.reserve(len);
for (int i = 0; i < len; ++i)
random_string.push_back(alphabet[random->Uniform(alphabet.size())]);
return random_string;
}
} // namespace test
} // namespace http2