Home
last modified time | relevance | path

Searched refs:magic_randomseed (Results 1 – 1 of 1) sorted by relevance

/third_party/lwip/src/netif/ppp/
Dmagic.c88 static u32_t magic_randomseed; /* Seed used for random number generation. */ variable
117 magic_randomseed += sys_jiffies(); in magic_churnrand()
118 sys_data.jiffies = magic_randomseed; in magic_churnrand()
201 static u32_t magic_randomseed; /* Seed used for random number generation. */ variable
223 magic_randomseed += sys_jiffies(); in magic_init()
226 srand((unsigned)magic_randomseed); in magic_init()
247 magic_randomseed += sys_jiffies(); in magic_randomize()
265 return LWIP_RAND() + magic_randomseed; in magic()
267 return ((u32_t)rand() << 16) + (u32_t)rand() + magic_randomseed; in magic()