From 180a73c1d1b0fd2e2f1a245eec30d196c662bf4f Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Sun, 3 Jan 2016 15:44:01 -0800 Subject: [PATCH] [rust] Day 4.1 --- rust/src/day_04.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/day_04.rs b/rust/src/day_04.rs index 9e7f2e6..daa28db 100644 --- a/rust/src/day_04.rs +++ b/rust/src/day_04.rs @@ -25,7 +25,7 @@ impl Day for Day04 { md5.input(key); md5.input(i.to_string().as_bytes()); md5.result(&mut out); - if out[0] == 0 && out[1] == 0 && out[2] >> 4 == 0 { + if out[0] == 0 && out[1] == 0 && out[2] == 0 { break; } md5.reset();