Table of Contents

# $EPIC: hash_32bit.txt,v 1.3 2007/03/02 02:32:04 jnelson Exp $

Synopsis:

$hash_32bit(<word> <length>)

Technical:

Practical:

You can use $hash_32bit() to convert an arbitrary string (perhaps containing characters that cannot be used in alias names) into a 32 bit signed integer value which you can use as part of an alias name. Collisions will occur. You cannot recover the original <word> from the output of this function. Please keep these in mind when using this function.

Returns:

A 32 bit signed integer (it can be either negative or positive) that is deterministically derived from the first <length> characters in <word>.

Examples:

$hash_32bit(“hello there”) returns 51439