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
On 2022-10-28 @recmo wrote in 49f6271 “Merge pull request #195 from recmo/pow2”:
We should use rand in tests, not arbitrary.
// TODO: Instead of uniform random sampling, we should use a distribution that// exercises different scales more. Something like sum(±2ⁱ for random i). The// reduction step can then remove terms or make them smaller.// TODO: We should use `rand` in tests, not `arbitrary`.impl<'a,constBITS:usize,constLIMBS:usize>Arbitrary<'a>forUint<BITS,LIMBS>{fn arbitrary(u:&mutUnstructured<'a>) -> Result<Self>{letmut limbs = [0;LIMBS];ifletSome((last, rest)) = limbs.split_last_mut(){
On 2022-10-28 @recmo wrote in
49f6271
“Merge pull request #195 from recmo/pow2”:We should use
rand
in tests, notarbitrary
.From
src/support/arbitrary.rs:11
The text was updated successfully, but these errors were encountered: