print hashes in HEX

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

View File

@ -8,13 +8,13 @@
int main(void)
{
char s[] = "name";
char s[] = "hello";
/* 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("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;
}
}