Brick\Math v0.8.16 Release Notes

Release Date: 2020-08-18 // over 3 years ago
  • ๐Ÿš‘ ๐Ÿš‘ Critical fix

    • ๐Ÿš€ This version reintroduces the deprecated BigInteger::parse() method, that has been removed by mistake in version 0.8.9 and should have lasted for the whole 0.8 release cycle.

    ๐Ÿ†• โœจ New features

    • BigInteger::modInverse() calculates a modular multiplicative inverse
    • BigInteger::fromBytes() creates a BigInteger from a byte string
    • BigInteger::toBytes() converts a BigInteger to a byte string
    • BigInteger::randomBits() creates a pseudo-random BigInteger of a given bit length
    • BigInteger::randomRange() creates a pseudo-random BigInteger between two bounds

    ๐Ÿ—„ ๐Ÿ’ฉ Deprecations

    • ๐Ÿ—„ BigInteger::powerMod() is now deprecated in favour of modPow()