fix outdated example

This commit is contained in:
NikVolf 2019-09-28 12:50:28 +03:00
parent 7476e4ea28
commit 730d2cbc7e
1 changed files with 2 additions and 1 deletions

View File

@ -213,7 +213,8 @@ impl<Node: Hashable> CommitmentTree<Node> {
/// sapling::Node,
/// };
///
/// let mut rng = OsRng::new().unwrap();
/// let mut rng = OsRng;
///
/// let mut tree = CommitmentTree::<Node>::new();
///
/// tree.append(Node::new(Fr::random(&mut rng).into_repr()));