RandomKit icon indicating copy to clipboard operation
RandomKit copied to clipboard

Random data generation in Swift

Results 14 RandomKit issues
Sort by recently updated
recently updated
newest added

Currently master will not build via Carthage as the Xcode projects contain reference to a version of Swift pre 4.1.

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...

I'm waiting for a new version on the podspec for migration to Swift4.1 if possible. Thank you!

With Xcode9.3, If I change `Show` checkbox on scheme management window, Xcode make a little diff on xccheme files. I use this library by gitsubmodule + carthage and add xcodeproj...

# My environment macOS High Sierra 10.13.4 Xcode9.3 # Problem I just cloned master and got compile error below. ``` /Users/omochi/github/omochi/RandomKit/Sources/RandomKit/Extensions/Swift/Collection+RandomKit.swift:100:17: Invalid redeclaration of 'uncheckedRandom(in:using:)' /Users/omochi/github/omochi/RandomKit/Sources/RandomKit/Extensions/Swift/Collection+RandomKit.swift:75:17: 'uncheckedRandom(in:using:)' previously declared here...

When using the latest Xcode (9.3) I get this error: RandomKit/Sources/RandomKit/Extensions/Swift/Collection+RandomKit.swift:90:73: Type 'Collection.IndexDistance' (aka 'Int') in conformance requirement does not refer to a generic parameter or associated type in: ```...

From the docs: "It's recommended to not call withThreadLocal(_:) or get the threadLocal pointer each individual time it's needed. Retrieving the thread-local instance incurs avoidable overhead." That means right now...

Sometimes it might be helpful to be able to log seed that was used to create generator. So we can reproduce same random sequence using that seed we know. For...

Hi! I'm about to use RandomKit for unit-testing. Is there any way to save current seed and be able to create generator with the same seed next time in order...

This turns all `RandomBytesGenerator` into infinite `Sequence`s of their `Bytes` type. This type allows for consuming and iterating over a RandomBytesGenerator without having to call `randomBytes()` directly. This mainly serves...