oidmap: use sha1hash() instead of static hash() function