idontgetoutmuch / random

Random number library
Other
3 stars 2 forks source link

Use importIntegerFromByteArray from integer-gmp for uniformIntegralWords #171

Open curiousleo opened 4 years ago

curiousleo commented 4 years ago

https://github.com/haskell/random/pull/62#discussion_r439780498:

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.