github.com/Ahti/FastRNG

A cross-plattform implementation of fast non-blocking RNG algorithms in Swift


License
Apache-2.0

Documentation

FastRNG

A cross-plattform implementation of fast non-blocking RNG algorithms in Swift.

The generators provided are not cryptographically secure.

Missing features

This is a list of features that might be cool to have:

  • More generators based on system-provided random sources
    • arc4random
    • /dev/random (SecRandomCopyBytes on iOS?)
  • Possibly add a second protocol to distinguish cryptographically secure random generators
  • Extensions for CollectionType and maybe other stdlib types (Double, ...?) to provide random sampling