Skip to content

Commit

Permalink
Don't need these anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
burdges committed Mar 19, 2019
1 parent 0e779f3 commit 0300e57
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions vdf/src/proof_wesolowski.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,13 @@ fn hash_prime<T: BigNum>(seed: &[&[u8]]) -> T {
h.input(i);
}
let mut h = h.xof_result();
let mut o = [0u8; 16];
loop {
let mut b = [0u8; 16]; // Ideally 17
h.read(&mut b);
assert_ne!(o, b);
let n = T::from(&b[..]);
if n.probab_prime(2) {
break n;
}
o = b;
}
}

Expand Down

0 comments on commit 0300e57

Please sign in to comment.