From e3c91711a1e3889c5354690b68afc9895d99bb7c Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Fri, 7 Jul 2017 21:40:59 +0200 Subject: [PATCH] Fix random coverage in std.algorithm.sorting --- std/algorithm/sorting.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/algorithm/sorting.d b/std/algorithm/sorting.d index e1c7792459c..30a95f3bbd5 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);