Skip to content

Releases: nvzqz/RandomKit

v5.2.3

08 Aug 19:29
v5.2.3
Compare
Choose a tag to compare

Fixes

  • Fixed compilation errors for Xcode 9 Beta 5

v5.2.2

28 Jul 19:47
v5.2.2
Compare
Choose a tag to compare

Fixes

  • Reimplement String.UTF16Index conformances to RandomInRange and RandomInClosedRange

v5.2.1

28 Jul 18:23
v5.2.1
Compare
Choose a tag to compare

Fixes

  • Removed String.UTF16Index conformances to RandomInRange and RandomInClosedRange for Swift 3.2 and after
    • This was enabled by an implementation based on Strideable, which the type no longer conforms to as of Swift 3.2

v5.2.0

25 Jul 04:10
v5.2.0
Compare
Choose a tag to compare

New Features

  • Made Trivial protocol public, allowing for library users to enable related optimizations for their own types
  • Added jump(count:) variant of jump() to Xoroshiro and XorshiftStar

Improvements

  • Made jump() for XorshiftStar 20%+ faster
  • Made reseed(with:) for ChaCha 550%+ faster
    • init(seed:) is also faster due to reliance on reseed(with:)

v5.1.0

24 Jun 13:18
v5.1.0
Compare
Choose a tag to compare

Improvements

  • Initial Swift 4 compatibility 🎉
  • Improved time to access a thread-local generator by ~22%

Changes

  • The ShiftOperations package is not required for Swift 3.2 and above

v5.0.0

24 Jul 18:50
v5.0.0
Compare
Choose a tag to compare

New Features

  • Added RandomRetrievable and RandomRetrievableInRange protocols (see 793e473)
  • Added SeedableFromSequence protocol (see 7109437)

Changes

  • Removed random(using:) method that applied to all Sequence types
  • Removed Double random(within:using:) for TimeInterval ranges
  • Renamed RandomWithinRange and RandomWithinClosedRange to RandomInRange and RandomInClosedRange respectively
    • Functions that had a within: argument now use in:
  • SeedableFromRandomGenerator no longer requires Seedable
  • Changed ChaCha.Seed to [UInt32]

v4.5.2

13 Apr 14:44
v4.5.2
Compare
Choose a tag to compare

Fixes

  • Fixed Xoroshiro jump method

v4.5.1

12 Apr 11:14
v4.5.1
Compare
Choose a tag to compare

Fixes

  • ChaCha reseed(with:) did not generate the same values for the same seed it was instantiated with

v4.5.0

12 Apr 10:46
v4.5.0
Compare
Choose a tag to compare

New Features

  • ChaCha random number generator (see: 9ca66ec)
  • Added reseed() method to SeedableFromOtherRandomGenerator

Improvements

  • Make random Array initializers 5-10% faster

v4.4.1

30 Mar 18:07
v4.4.1
Compare
Choose a tag to compare

Fixes

  • Safely accesses internal global thread-local-storage type keys dictionary with a readers-write lock