| 14 | { |
| 15 | using Distribution = VectorWithMemoryTracking<size_t>; |
| 16 | Distribution getDistribution(size_t from, size_t to) |
| 17 | { |
| 18 | Distribution distribution(from); |
| 19 | |
| 20 | for (size_t i = 0; i < from; ++i) |
| 21 | distribution[i] = i % to; |
| 22 | |
| 23 | std::shuffle(distribution.begin(), distribution.end(), thread_local_rng); |
| 24 | return distribution; |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | void narrowPipe(Pipe & pipe, size_t width) |
no test coverage detected