RandomKit is a Swift framework that makes random data generation simple and easy. RandomKit is possibly also compatible with FreeBSD, Android, and Windows (under Cygwin) but has not been tested for those platforms. The RandomGenerator protocol defines basic methods for generating primitive values and randomizing a buffer. All provided types that conform to RandomGenerator have a static default value that can be passed as an inout argument to generation functions. The RandomBytesGenerator protocol is for types that specialize in generating a specific type that fills up a number of bytes. For example, MersenneTwister specializes in generating UInt64 while Xorshift generates UInt32 values.
Features
- Install Using Swift Package Manager
- Install Using CocoaPods
- Install Using Carthage
- RandomGenerator
- Thread Safety
- Thread-local generators are deallocated upon thread exit
- Swift Types
Categories
FrameworksLicense
MIT LicenseFollow RandomKit
You Might Also Like
Our Free Plans just got better! | Auth0 by Okta
You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of RandomKit!