RandomKit v3.0.0 Release Notes

Release Date: 2016-12-09 // over 7 years ago
  • ๐Ÿ†• New Features

    • Mersenne Twister random generator
    • All integer types conform to UnsafeRandom
    • Array(unsafeRandomCount:using:) for types conforming to UnsafeRandom
      • For much better performance with integer types, this should be used
    • โž• Added a benchmark target that can be built with the Swift package manager
    • Created RandomWithMaxWidth and RandomWithExactWidth protocols
    • โž• Added randomize(buffer:maxWidth:) and randomize(buffer:exactWidth:) methods to RandomGenerator

    ๐Ÿ‘Œ Improvements

    • Generating RandomEnum values is significantly faster

    ๐Ÿ›  Fixes

    • UnicodeScalar now produces a uniform distribution when the Range or ClosedRange spans below 0xD7FF and above 0xE000

    ๐Ÿ”„ Changes

    • โœ‚ Removed RandomDistribution (#29)
    • The devRandom and devURandom cases for RandomGenerator are now a single device case with a DeviceSource parameter
    • The arc4random case for RandomGenerator is now camel-cased arc4Random
    • ๐ŸŽ Float80 extension now available for i386 and x86_64 architectures, not only for macOS
    • URL.random(fromValues:) now returns an Optional<URL>
    • โž• Added ShiftOperations dependency
    • ๐Ÿ‘‰ Uses Strideable instead of _Strideable