You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For generating `x` in a `0:m` BigInt range, instead of uniformly
randomizing all the limbs of `x` and rejecting when out of range,
we generate the highest limb `hx` of `x` in `0:hm` where `hm`
is the highest limb of `m`. Before the introduction of
`SamplerRangeNDL`, this would have changed nothing, as the predecessor
`SamplerRangeFast` was itself using rejection sampling by generating
first a given number of random bits. But with NDL, this can speed-up
`BigInt` generation by very roughly 10%, as in general almost no
"rejection" will happen.
0 commit comments