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 toUnsafeRandom
- 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
andRandomWithExactWidth
protocols - โ Added
randomize(buffer:maxWidth:)
andrandomize(buffer:exactWidth:)
methods toRandomGenerator
๐ Improvements
- Generating
RandomEnum
values is significantly faster
๐ Fixes
UnicodeScalar
now produces a uniform distribution when theRange
orClosedRange
spans below0xD7FF
and above0xE000
๐ Changes
- โ Removed
RandomDistribution
(#29) - The
devRandom
anddevURandom
cases forRandomGenerator
are now a singledevice
case with aDeviceSource
parameter - The
arc4random
case forRandomGenerator
is now camel-casedarc4Random
- ๐
Float80
extension now available for i386 and x86_64 architectures, not only for macOS URL.random(fromValues:)
now returns anOptional<URL>
- โ Added ShiftOperations dependency
- ๐ Uses
Strideable
instead of_Strideable