If integer-gmp is available, one can fill a random bytearray and invoke importIntegerFromByteArray.
The idea is that this could be a faster way to generate a random Integer when integer-gmp is used. The PR should come with benchmark results showing this.
https://github.com/haskell/random/pull/62#discussion_r439780498:
The idea is that this could be a faster way to generate a random
Integer
wheninteger-gmp
is used. The PR should come with benchmark results showing this.