http://d.puremagic.com/issues/show_bug.cgi?id=2897
Summary: RandomCover docs wrong: RandomCover needs a random
access range.
Product: D
Version: 2.029
Platform: PC
OS/Version: Windows
Status: NEW
Severity: trivial
Priority: P2
Component: Phobos
AssignedTo: [email protected]
ReportedBy: [email protected]
>From RandomCover docs:
"Covers a given range r in a random manner, i.e. goes through each
element of r once and only once, just in a random order. r
must be a forward access range with length."
Reading the source code, it's clear that RandomCover really needs random
access:
ref ElementType!(Range) front()
{
return _input[_current];
}
--