MCPcopy Create free account
hub / github.com/USCiLab/cereal / random_binary_string

Function random_binary_string

sandbox/performance.cpp:276–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274
275template <size_t N>
276std::string random_binary_string(std::mt19937 & gen)
277{
278 std::string s(N, ' ');
279 for(auto & c : s )
280 c = std::uniform_int_distribution<char>('0', '1')(gen);
281 return s;
282}
283
284struct PoDStructCereal
285{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected