diff options
Diffstat (limited to 'src/2015/day4/aoc.cpp')
-rw-r--r-- | src/2015/day4/aoc.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/2015/day4/aoc.cpp b/src/2015/day4/aoc.cpp index ab5f301..34693df 100644 --- a/src/2015/day4/aoc.cpp +++ b/src/2015/day4/aoc.cpp @@ -2,31 +2,6 @@ namespace aoc2015 { -char* md5sum(char* s) { - static char md5[64] = {0}; - uint8_t* x = md5String(s); - memset(md5, 0x0, 64); - for (auto i = 0; i < 16; i++) { - sprintf(md5 + i * 2, "%02x", x[i]); - } - return md5; -} - -int lead_zeros(char* s) { - char* p = s; - int total = 0; - while (*p != '\0') { - if (*p == '0') { - total += 1; - p++; - } - else { - break; - } - } - return total; -} - int day4(const char* secret, int target) { char buf[128] = {0}; int len = strlen(secret); |