fixed generate_random_hw in TC&TI's tunnel module