fixed generate_random_hw in TC's tunnel