afc_string_hash

Name

afc_string_hash  -- Creates an hash value for the string

Synopsis

unsigned long int afc_string_hash ( register unsigned char * string, unsigned long int turbolence );

Description

This function generates and hash value for the given string. An hash value is a (very long) number that tries to generate unique id (values) for one string. The turbolence value is used to add some randomness to the given number. Please, remember that changing the turbolence causes a different hash value to be generated. If you want always the same hash value for a specific string, you should always use the same turbolence

Inputs

string

String to be hashed.

turbolence

The starting value randomness

Result

0

The convertion worked properely

non zero

Something went wrong.

Note

See Also