pub fn random<T: RngCore + CryptoRng>(mut rng: T) -> Self {
        let scalar = Scalar::random(&mut rng);
        let mut dk = [0u8; 32];
        rng.fill_bytes(&mut dk);

        let precompressed_pubkey = (scalar * &constants::RISTRETTO_BASEPOINT_POINT).compress();

        Xprv {
            scalar,
            dk,
            precompressed_pubkey,
        }
    }
/// Returns a new Xprv, generated using the provided random number generator `rng`.
Returns a new Xprv, generated using the provided random number generator `rng`.
Returns a new Xprv generated using the provided random number generator ` rng ` .
pub fn random<T: RngCore + CryptoRng>(mut rng: T) -> Self {
        let scalar = Scalar::random(&mut rng);
        let mut dk = [0u8; 32];
        rng.fill_bytes(&mut dk);
        let precompressed_pubkey = (scalar * &constants::RISTRETTO_BASEPOINT_POINT).compress();
        Xprv {
            scalar,
            dk,
            precompressed_pubkey,
        }
    }
pub fn random < T : RngCore + CryptoRng > ( mut rng : T ) -> Self { let scalar = Scalar :: random ( & mut rng ) ; let mut dk = [ 0u8 ; 32 ] ; rng . fill_bytes ( & mut dk ) ; let precompressed_pubkey = ( scalar * & constants :: RISTRETTO_BASEPOINT_POINT ) . compress ( ) ; Xprv { scalar , dk , precompressed_pubkey , } }
Returns a new Xprv, generated using the provided random number generator `rng`.
Returns a new Xprv generated using the provided random number generator ` rng ` .
rng
T
rng
T