| 32 | |
| 33 | template <class Integer> |
| 34 | static std::vector<Integer> MakeIntegers(int32_t n_values) { |
| 35 | std::vector<Integer> values(n_values); |
| 36 | |
| 37 | std::default_random_engine gen(42); |
| 38 | std::uniform_int_distribution<Integer> values_dist(0, |
| 39 | std::numeric_limits<Integer>::max()); |
| 40 | std::generate(values.begin(), values.end(), |
| 41 | [&]() { return static_cast<Integer>(values_dist(gen)); }); |
| 42 | return values; |
| 43 | } |
| 44 | |
| 45 | static std::vector<std::string> MakeStrings(int32_t n_values, int32_t min_length, |
| 46 | int32_t max_length) { |