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”:
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.
#![cfg(feature = "arbitrary")]#![cfg_attr(has_doc_cfg, doc(cfg(feature = "arbitrary")))]usecrate::Uint;use arbitrary::{Arbitrary,Result,Unstructured};// 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>{
On 2022-10-28 @recmo wrote in
49f6271
“Merge pull request #195 from recmo/pow2”: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.
From
src/support/arbitrary.rs:7
The text was updated successfully, but these errors were encountered: