diff --git a/src/bin/beacon.rs b/src/bin/beacon.rs index 762ca50..0e3c303 100644 --- a/src/bin/beacon.rs +++ b/src/bin/beacon.rs @@ -55,7 +55,7 @@ fn main() { let mut seed = [0u32; 8]; for i in 0..8 { - seed[i] = digest.read_u32::().expect("digest is large enough for this to work"); + seed[i] = digest.read_u32::().expect("digest is not large enough for this to work"); } ChaChaRng::from_seed(&seed) @@ -64,7 +64,7 @@ fn main() { // Try to load `./challenge` from disk. let reader = OpenOptions::new() .read(true) - .open("challenge").expect("unable open `./challenge` in this directory"); + .open("challenge").expect("unable to open `./challenge` in this directory"); { let metadata = reader.metadata().expect("unable to get filesystem metadata for `./challenge`"); diff --git a/src/bin/compute.rs b/src/bin/compute.rs index 955dd83..1e1bf7f 100644 --- a/src/bin/compute.rs +++ b/src/bin/compute.rs @@ -41,7 +41,7 @@ fn main() { // Interpret the first 32 bytes of the digest as 8 32-bit words let mut seed = [0u32; 8]; for i in 0..8 { - seed[i] = digest.read_u32::().expect("digest is large enough for this to work"); + seed[i] = digest.read_u32::().expect("digest is not large enough for this to work"); } ChaChaRng::from_seed(&seed)