RandomKit Versions Save

Random data generation in Swift

v5.2.3

6 years ago

Fixes

  • Fixed compilation errors for Xcode 9 Beta 5

v5.2.2

6 years ago

Fixes

  • Reimplement String.UTF16Index conformances to RandomInRange and RandomInClosedRange

v5.2.1

6 years ago

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

6 years ago

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.0.0

6 years ago

New Features

  • Added RandomRetrievable and RandomRetrievableInRange protocols (see 793e473e4a7d21a6777f131c5bf47fc6f0907f73)
  • Added SeedableFromSequence protocol (see 71094375cee72f99a6cadd1f1195c5dba6369da1)

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]

v5.1.0

6 years ago

Improvements

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

Changes

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

v4.5.2

7 years ago

Fixes

  • Fixed Xoroshiro jump method

v4.5.1

7 years ago

Fixes

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

v4.5.0

7 years ago

New Features

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

Improvements

  • Make random Array initializers 5-10% faster

v4.4.1

7 years ago

Fixes

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