I am trying to generate large random prime numbers (1024 bit-ish) so I need a way to generate large positive random numbers.
I began with System.Random
but want to move to Crypto.Random
from the crypto-api
package.
The Crypto.Random
only produces bytestrings, so I need a way to convert to an Integer
type. What is the best way to do this?