print hashes in HEX

This commit is contained in:
Krishna Vedala 2020-03-07 10:45:24 -05:00
parent fce50a9d7c
commit fba36e3b15
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7

View File

@ -11,12 +11,10 @@ int main(void)
char s[] = "name";
/* actual tests */
printf("sdbm: %s --> %lld\n", s, sdbm(s));
printf("djb2: %s --> %lld\n", s, djb2(s));
printf("xor8: %s --> %i\n", s, xor8(s)); /* 8 bit */
printf("adler_32: %s --> %i\n", s, adler_32(s)); /* 32 bit */
printf("crc32: %s --> %i\n", s, crc32(s));
printf("sdbm: %s --> %llX\n", s, sdbm(s));
printf("djb2: %s --> %llX\n", s, djb2(s));
printf("xor8: %s --> %X\n", s, xor8(s)); /* 8 bit */
printf("adler_32: %s --> %X\n", s, adler_32(s)); /* 32 bit */
return 0;
}
}