a little improvement of hashid code: move the calculation of hashcap into the hashid_init function and remove the assertions