View Single Post
Old 09-15-2004, 04:50 AM   #179
doctorow
Guru
doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.doctorow ought to be getting tired of karma fortunes by now.
 
doctorow's Avatar
 
Posts: 914
Karma: 3410461
Join Date: May 2004
Device: Kindle Touch
Nice job guys!

gprm, I hope you don't mind me posting your c source here?

Code:
 
/* 
gET my pAGE rANK mOFO !
A piece of code made for fun. This is an extract from GPRM. 
Don't take this checksum thing too seriously. 
Google can't reasonably expect to protect his technology with a table look-up hash algorithm ?!
gprm@altern.org 
This code is published under the GNU Public License.
If you use it, you have to explicitely mention GPRM and me.
Tarakan
*/
 
// checksum calculation, plain C
char data[160];
char url[500];
unsigned int prbuf[20],l;
char site[150];
strcpy(data, "info:");
strcat(data, site);
l=hash((unsigned char *)data, strlen(data), 0xe6359a60);
l=(((l/7) << 2) | ((l%13)&7));
prbuf[0]=l;
for(i=1; i<20; i++) prbuf[i]=prbuf[i-1]-9;
l=hash((BYTE *)prbuf, 80, 0xe6359a60);
doctorow is offline   Reply With Quote