>do you know where to get hash-perlmodules from?

'Fraid not. But the hash function for Java strings is pretty simple:

"s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]

using int arithmetic, where s[i] is the ith character of the string, n 
is the length of the string, and ^ indicates exponentiation. (The hash 
value of the empty string is zero.)"

Michael

_______________________________________________
freenet-tech mailing list
[EMAIL PROTECTED]
http://lists.freenetproject.org/mailman/listinfo/tech

Reply via email to