pub fn append_random_commitment<R: Rng>(&mut self, rng: &mut R) -> Result<MerkleNode, ()> {
        let node = MerkleNode {
            value: Scalar::random(rng).to_repr(),
        };
        self.append(node)?;
        Ok(node)
    }
/// Append a random commitment to the Merkle Tree `self`.
/// The commitment is not necessarily a `valid' commitment.
Append a random commitment to the Merkle Tree `self`.
The commitment is not necessarily a `valid' commitment.
Append a random commitment to the Merkle Tree ` self ` . The commitment is not necessarily a ` valid ' commitment .
pub fn append_random_commitment<R: Rng>(&mut self, rng: &mut R) -> Result<MerkleNode, ()> {
        let node = MerkleNode {
            value: Scalar::random(rng).to_repr(),
        };
        self.append(node)?;
        Ok(node)
    }
pub fn append_random_commitment < R : Rng > ( & mut self , rng : & mut R ) -> Result < MerkleNode , ( ) > { let node = MerkleNode { value : Scalar :: random ( rng ) . to_repr ( ) , } ; self . append ( node ) ? ; Ok ( node ) }
Append a random commitment to the Merkle Tree `self`.
Append a random commitment to the Merkle Tree ` self ` .
&mut self
rng
&mut R
&mut self
rng
&mut R