Skip to content

v0.2.8

Compare
Choose a tag to compare
@n8sh n8sh released this 24 Oct 03:24
· 172 commits to master since this release

Release v0.2.8

Additions:

  • Added xorshift1024*φ and xoroshiro128+ generators (mir.random.engine.xorshift : Xorshift1024StarPhi, Xoroshiro128Plus)
  • Mt19937 and Mt19937_64 can be seeded from array or ndslice
  • mir.random.engine.preferHighBits!T to query new optional enum preferHighBits

Improvements:

  • When the high bits of a PRNG's output are known to have better statistical properties than the low bits, use high bits when not all bits of output are required.
  • On macOS, OpenBSD, and NetBSD, use arc4random_buf in unpredictableSeed and genRandomNonBlocking.

Bugfixes:

  • Fix isSaturatedRandomEngine!T not working when T.opCall is a function template.
  • Fix address-based increment for PCGs in unique_stream mode.
  • Incorporated upstream fix for seeding a MCG with a seed that's a multiple of the modulus.