Searched refs:randVal (Results 1 – 1 of 1) sorted by relevance
143 uint32_t randVal; in EthHisiRandomAddr() local148 ret = HiRandomHwGetInteger(&randVal); in EthHisiRandomAddr()150 randVal = (uint32_t)(hi_sched_clock() & 0xffffffff); in EthHisiRandomAddr()152 addr[0] = randVal & 0xff; in EthHisiRandomAddr()153 addr[1] = (randVal >> MAC_ADDR_OFFSET_L8) & 0xff; in EthHisiRandomAddr()154 addr[2] = (randVal >> MAC_ADDR_OFFSET_L16) & 0xff; in EthHisiRandomAddr()155 addr[3] = (randVal >> MAC_ADDR_OFFSET_L24) & 0xff; in EthHisiRandomAddr()158 ret = HiRandomHwGetInteger(&randVal); in EthHisiRandomAddr()160 randVal = (uint32_t)(hi_sched_clock() & 0xffffffff); in EthHisiRandomAddr()162 addr[4] = randVal & 0xff; in EthHisiRandomAddr()[all …]