Changes for version 0.44 - 2017-04-13
- ADDED
- irand() Returns uniform random 32-bit integer
- irand64() Returns uniform random 64-bit integer
- drand([fmax]) Returns uniform random NV (floating point)
- urandomm(n) Returns uniform random integer in [0, hi-1]
- random_bytes(nbytes) Return a string of CSPRNG bytes
- FIXES
- miller_rabin_random wasn't initializing a variable. Fixed and test added. Thanks to Alexandr Ciornii for timely reporting.
- Fixed is_primitive_root behavior with negative values.
- PERFORMANCE
- sieve_prime_cluster up to 2x faster.
- OTHER
- prime_count(), random_prime(), urandomr() can be used with one arg.
Modules
Utilities related to prime numbers and factoring, using GMP