[rust] Day 4.1

wip
Alpha Chen 9 years ago
parent e3fcf73113
commit 180a73c1d1

@ -25,7 +25,7 @@ impl Day for Day04 {
md5.input(key); md5.input(key);
md5.input(i.to_string().as_bytes()); md5.input(i.to_string().as_bytes());
md5.result(&mut out); 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; break;
} }
md5.reset(); md5.reset();

Loading…
Cancel
Save