String hash function #1

int hash(std::string const & key) {
	int hashVal = 0, len = key.length();
	for(int i=0; i<len; i++) {
		hashVal += key[i];	}
	return hashVal;
}

CONTENTS    PREVIOUS    NEXT