mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 15:10:46 +03:00
Fix random coverage in std.algorithm.sorting
This commit is contained in:
parent
4f0e28b54a
commit
e3c91711a1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue