Optimize genInteger a little
Optimize genInteger a little

Ignore-this: 3ee0d5c7cf548bd21c410edfefc95150

genInteger will retry when the generated offset > range where range = high - low.  This patch
makes sure to mask offset to the minimum bitsize of the range to minimize the number of
retries.  To keep this cheap we use a worker/wrapper transform so mask (and other vals)
aren't constantly recomputed

darcs-hash:20100905160813-cef97-6ab546dada95481946314d43aef0a45cc714d6b1.gz

TomMD/crypto-api