generate hash code in predef-monimelt.h