fixed hash size calculation