Fixed hash function (*facepalm*) in header generator

Signed-off-by: Ian bell <ian.h.bell@gmail.com>