diff --git a/std/algorithm/sorting.d b/std/algorithm/sorting.d index e1c779245..30a95f3bb 100644 --- a/std/algorithm/sorting.d +++ b/std/algorithm/sorting.d @@ -895,7 +895,7 @@ if (ss == SwapStrategy.unstable && isRandomAccessRange!Range auto a = new int[](uniform(0, 100, r)); foreach (ref e; a) { - e = uniform(0, 50); + e = uniform(0, 50, r); } auto pieces = partition3(a, 25); assert(pieces[0].length + pieces[1].length + pieces[2].length == a.length);