Hash generation is a static function.