| 264 | |
| 265 | template<class C> |
| 266 | std::basic_string<C> random_basic_string(std::mt19937 & gen, size_t maxSize = 30) |
| 267 | { |
| 268 | std::basic_string<C> s(std::uniform_int_distribution<int>(3, maxSize)(gen), ' '); |
| 269 | for(C & c : s) |
| 270 | c = static_cast<C>( std::uniform_int_distribution<int>( '~', '~' )(gen) ); |
| 271 | return s; |
| 272 | return s; |
| 273 | } |
| 274 | |
| 275 | template <size_t N> |
| 276 | std::string random_binary_string(std::mt19937 & gen) |
nothing calls this directly
no outgoing calls
no test coverage detected