hash: mark compute_bucket_size with the pure attribute