nvzqz/RandomKit

Invalid redeclaration of 'uncheckedRandom(in:using:)

hufkens opened this issue · 3 comments

When using the latest Xcode (9.3) I get this error:

RandomKit/Sources/RandomKit/Extensions/Swift/Collection+RandomKit.swift:84:17:` Invalid redeclaration of 'uncheckedRandom(in:using:)

in:

extension RandomRetrievableInRange where Self: Collection, Self.Index: RandomInRange, Self.IndexDistance: RandomToValue {

    /// Returns a random element in range without checking whether self or range is empty.
    public func uncheckedRandom<R: RandomGenerator>(in range: Range<Index>, using randomGenerator: inout R) -> Iterator.Element {
        return self[Index.uncheckedRandom(in: range, using: &randomGenerator)]
    }

}
vbklv commented

Issue blocking working with Xcode 9.3 and iOS 11.3

I'm having this issue, too, with Xcode 9.4, building for the latest macOS High Sierra.

I have the same issue in Linux