Commit 74a13ef
tests: actually randomise the order of tests
`std::random_shuffle` can use `std::rand` (and does so on Windows), and
without intialising with `srand()` the order will always be the same, so
we don't get the expected randomisation.
Switch to using `std::shuffle` with a proper random number generator in
order to fix this and get random order execution.1 parent 2fd3989 commit 74a13ef
1 file changed
+16
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
337 | 339 | | |
338 | 340 | | |
339 | 341 | | |
340 | | - | |
| 342 | + | |
| 343 | + | |
341 | 344 | | |
342 | 345 | | |
343 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
344 | 350 | | |
345 | | - | |
| 351 | + | |
346 | 352 | | |
347 | 353 | | |
348 | 354 | | |
| 355 | + | |
| 356 | + | |
349 | 357 | | |
350 | 358 | | |
| 359 | + | |
| 360 | + | |
351 | 361 | | |
352 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
353 | 365 | | |
354 | 366 | | |
355 | 367 | | |
| |||
0 commit comments