Skip to content

v4.4.0

Compare
Choose a tag to compare
@nvzqz nvzqz released this 30 Mar 08:01
· 149 commits to master since this release
v4.4.0

New Features

  • Added initializers to ReseedingRandomGenerator that take 1 or 0 arguments
    • If Reseeder conforms to SeedableFromOtherRandomGenerator, the reseeder is created from Reseeder.seeded (see a7d1b9b)
    • For Swift >= 3.1, if Reseeder is DeviceRandom or ARC4Random, the reseeder is just Reseeder.default (see da57645)
  • Added floating-point value generation methods for open, half open, and closed intervals (see 59182e5)
  • Added thread-local random generators (see fde214b) 🎉

Improvements

  • Made Double and Float random(using:) about 27 times faster (see 8799af7)
  • Made CGFloat.random(using:) faster , in turn making (NS|UI)Color.random(using:) faster (see a1b60d1)

Fixes

  • Made randomClosed methods be truly on the [0, 1] interval (see 9b0d56b)