fn uniform_keypair_strategy() -> proptest::prelude::BoxedStrategy<Self> {
        use proptest::prelude::*;
        use rand::{rngs::StdRng, SeedableRng};

        // The no_shrink is because keypairs should be fixed -- shrinking would cause a different
        // keypair to be generated, which appears to not be very useful.
        any::<[u8; 32]>()
            .prop_filter_map("valid random keypair", |seed| {
                let mut rng = StdRng::from_seed(seed);
                Some(Self::generate_random(&mut rng).unwrap())
            })
            .no_shrink()
            .boxed()
    }
/// Test-only strategy returning a proptest Strategy based on
/// generate_random
Test-only strategy returning a proptest Strategy based on
generate_random
Test - only strategy returning a proptest Strategy based on generate_random
fn uniform_keypair_strategy() -> proptest::prelude::BoxedStrategy<Self> {
        use proptest::prelude::*;
        use rand::{rngs::StdRng, SeedableRng};
        // The no_shrink is because keypairs should be fixed -- shrinking would cause a different
        // keypair to be generated, which appears to not be very useful.
        any::<[u8; 32]>()
            .prop_filter_map("valid random keypair", |seed| {
                let mut rng = StdRng::from_seed(seed);
                Some(Self::generate_random(&mut rng).unwrap())
            })
            .no_shrink()
            .boxed()
    }
fn uniform_keypair_strategy ( ) -> proptest :: prelude :: BoxedStrategy < Self > { use proptest :: prelude :: * ; use rand :: { rngs :: StdRng , SeedableRng } ; // The no_shrink is because keypairs should be fixed -- shrinking would cause a different // keypair to be generated, which appears to not be very useful. any :: < [ u8 ; 32 ] > ( ) . prop_filter_map ( " " , | seed | { let mut rng = StdRng :: from_seed ( seed ) ; Some ( Self :: generate_random ( & mut rng ) . unwrap ( ) ) } ) . no_shrink ( ) . boxed ( ) }
Test-only strategy returning a proptest Strategy based on
generate_random
Test - only strategy returning a proptest Strategy based on generate_random