-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Previously, calling e.g. rand(big(1:4)) caused a stack overflow, because rand(mt::MersenneTwister, r::AbstractArray) was calling itself recursively. A mecanism handling not-implemented types should be added. * A type RandIntGenBigInt similar to RandIntGen (both subtypes of RangeGenerator) has been introduced to handle rand on big ranges. The generic function to construct such objects is named inrange. Note: mpz_import could be replaced by mpz_limbs_{write,finish} when GMP version 6 is used. * BigInt tests from commit bf8c452 were re-added.
- Loading branch information
Showing
2 changed files
with
66 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters